rust_macios/background_tasks/
bg_app_refresh_task.rs

1use crate::{
2    background_tasks::bg_task::IBGTask,
3    object,
4    objective_c_runtime::{macros::interface_impl, traits::PNSObject},
5};
6
7object! {
8    /// An object representing a short task typically used to refresh content
9    /// that’s run while the app is in the background.
10    unsafe pub struct BGAppRefreshTask;
11}
12
13#[interface_impl(BGTask)]
14impl BGAppRefreshTask {}
15
16impl IBGTask for BGAppRefreshTask {}
17
18impl Default for BGAppRefreshTask {
19    fn default() -> Self {
20        Self::m_new()
21    }
22}