register(options:queue:handler:)
Register the application as a Hotspot Helper.
Declaration
class func register(options: [String : NSObject]? = nil, queue: dispatch_queue_t, handler: @escaping NEHotspotHelperHandler) -> BoolParameters
- options:
If not nil, a Nsdictionary containing
kNEHotspotHelperOption*keys (currently justkNEHotspotHelperOptionDisplayName). - queue:
The Dispatch_queue_t to invoke the handle block on.
- handler:
The
NEHotspotHelperHandlerblock to execute to process helper commands.
Return Value
Discussion
Once this API is invoked successfully, the application becomes eligible to be launched in the background and participate in various hotspot related functions.
This method should be called once when the application starts up. Invoking it again will have no effect and result in false being returned.