#[repr(transparent)]pub struct BGTaskSchedulerErrorCode(pub NSInteger);
BGTaskScheduler
only.Expand description
An enumeration of the task scheduling errors.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl BGTaskSchedulerErrorCode
impl BGTaskSchedulerErrorCode
A task scheduling error indicating that the app or extension can’t schedule background work.
This error usually occurs for one of following reasons:
- The user has disabled background refresh in settings.
- The app is running on Simulator which doesn’t support background processing.
- The keyboard extension either hasn’t set
<doc
://com.apple.documentation/documentation/bundleresources/information_property_list/nsextension/nsextensionattributes/requestsopenaccess>
to
YES
in The Info.plist File, or the user hasn’t granted open access. - The extension type isn’t able to schedule background tasks.
Sourcepub const TooManyPendingTaskRequests: Self
pub const TooManyPendingTaskRequests: Self
A task scheduling error indicating that there are too many pending tasks of the type requested.
Try canceling some existing task requests and then resubmit the request that failed.
Sourcepub const NotPermitted: Self
pub const NotPermitted: Self
A task scheduling error indicating the app isn’t permitted to schedule the task.
There are two causes for this error:
-
The app doesn’t set the appropriate mode in the <doc ://com.apple.documentation/documentation/bundleresources/information_property_list/uibackgroundmodes> array.
-
The task identifier of the submitted task wasn’t in the <doc ://com.apple.documentation/documentation/bundleresources/information_property_list/bgtaskschedulerpermittedidentifiers> array in the Info.plist File.
Trait Implementations§
Source§impl Clone for BGTaskSchedulerErrorCode
impl Clone for BGTaskSchedulerErrorCode
Source§fn clone(&self) -> BGTaskSchedulerErrorCode
fn clone(&self) -> BGTaskSchedulerErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more