#[repr(u64)]pub enum NSActivityOptions {
IdleDisplaySleepDisabled = 1_099_511_627_776,
IdleSystemSleepDisabled = 1_048_576,
SuddenTerminationDisabled = 16_384,
AutomaticTerminationDisabled = 32_768,
UserInitiated = 16_777_215,
UserInteractive = 1_095_233_437_695,
Background = 255,
LatencyCritical = 1_095_216_660_480,
InitiatedAllowingIdleSystemSleep = 15_728_639,
AnimationTrackingEnabled = 35_184_372_088_832,
TrackingEnabled = 70_368_744_177_664,
}
Expand description
Option flags used with begin_activity_with_options_reason
and perform_activity_with_options_reason_using_block
.
Variants§
IdleDisplaySleepDisabled = 1_099_511_627_776
A flag to require the screen to stay powered on.
IdleSystemSleepDisabled = 1_048_576
A flag to prevent idle sleep.
SuddenTerminationDisabled = 16_384
A flag to prevent sudden termination.
AutomaticTerminationDisabled = 32_768
A flag to prevent automatic termination.
UserInitiated = 16_777_215
A flag to indicate the app is performing a user-requested action.
UserInteractive = 1_095_233_437_695
A flag to indicate the app is responding to user interaction.
Background = 255
A flag to indicate the app has initiated some kind of work, but not as the direct result of user request.
LatencyCritical = 1_095_216_660_480
A flag to indicate the activity requires the highest amount of timer and I/O precision available.
InitiatedAllowingIdleSystemSleep = 15_728_639
A flag to indicate the app is performing a user-requested action, but that the system can sleep on idle.
AnimationTrackingEnabled = 35_184_372_088_832
A flag to track the activity with an animation signpost interval.
TrackingEnabled = 70_368_744_177_664
A flag to track the activity with a signpost interval.
Trait Implementations§
Source§impl Clone for NSActivityOptions
impl Clone for NSActivityOptions
Source§fn clone(&self) -> NSActivityOptions
fn clone(&self) -> NSActivityOptions
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more