SMJobSubmit(_:_:_:_:)
Submits the specified job to the specified domain.
Declaration
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: UnsafeMutableRawPointer!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Boolfunc SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> BoolParameters
- domain:
The job’s domain (for example, Ksmdomainsystemlaunchd).
- job:
A dictionary describing a job.
- auth:
An
AuthorizationRefcontaining the Ksmrightmodifysystemdaemons right if the specifieddomain is Ksmdomainsystemlaunchd.
- outError:
An output reference to a
CFErrorRefdescribing the specific error when submitting the job, orNULLif no error occurred. It’s the responsibility of the app to release the error reference. This argument can beNULL.
Return Value
Returns true if the system successfully submits the job, otherwise false.