Type Alias SCPreferencesCallBack

Source
pub type SCPreferencesCallBack = Option<unsafe extern "C-unwind" fn(NonNull<SCPreferences>, SCPreferencesNotification, *mut c_void)>;
Available on crate feature SCPreferences only.
Expand description

Type of the callback function used when the preferences have been updated and/or applied.

Parameter prefs: The preferences session.

Parameter notificationType: The type of notification, such as changes committed, changes applied, etc.

Parameter info: A C pointer to a user-specified block of data.

See also Apple’s documentation

Aliased Type§

pub enum SCPreferencesCallBack {
    None,
    Some(unsafe extern "C-unwind" fn(NonNull<SCPreferences>, SCPreferencesNotification, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(NonNull<SCPreferences>, SCPreferencesNotification, *mut c_void))

Some value of type T.