---
title: "SCPreferencesScheduleWithRunLoop(_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scpreferencesschedulewithrunloop(_:_:_:)"
---

# SCPreferencesScheduleWithRunLoop(_:_:_:)

Schedules commit and apply notifications for the specified preferences session using the specified run loop and mode.

## Declaration

```swift
func SCPreferencesScheduleWithRunLoop(_ prefs: SCPreferences, _ runLoop: CFRunLoop, _ runLoopMode: CFString) -> Bool
```

## Parameters

- `prefs`: The preferences session.
- `runLoop`: The run loop on which the notification should be scheduled. Do not pass NULL.
- `runLoopMode`: The run loop mode with which to schedule the notification. Do not pass NULL.

## Return Value

Return Value TRUE if the notifications are successfully scheduled; otherwise, FALSE.

## See Also

### Managing Notifications and Callbacks

- [SCPreferencesSetCallback(_:_:_:)](systemconfiguration/scpreferencessetcallback(_:_:_:).md)
- [SCPreferencesUnscheduleFromRunLoop(_:_:_:)](systemconfiguration/scpreferencesunschedulefromrunloop(_:_:_:).md)
- [SCPreferencesSetDispatchQueue(_:_:)](systemconfiguration/scpreferencessetdispatchqueue(_:_:).md)
