Contents

SCPreferencesSetCallback(_:_:_:)

Assigns the specified callback to the specified preferences session.

Declaration

func SCPreferencesSetCallback(_ prefs: SCPreferences, _ callout: SCPreferencesCallBack?, _ context: UnsafeMutablePointer<SCPreferencesContext>?) -> Bool

Parameters

  • prefs:

    The preferences session.

  • callout:

    The function to be called when the preferences have been changed or applied. If NULL, the current callback is removed.

  • context:

    The context associated with the callback function. See Scpreferencescontext for more information about this structure.

Return Value

TRUE if the callback was successfully associated with the preferences session; otherwise, FALSE.

Discussion

This function is called when the changes to the preferences have been committed or applied.

See Also

Managing Notifications and Callbacks