Contents

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) -> Bool

Parameters

  • options:

    If not nil, a Nsdictionary containing kNEHotspotHelperOption* keys (currently just kNEHotspotHelperOptionDisplayName).

  • queue:

    The Dispatch_queue_t to invoke the handle block on.

  • handler:

    The NEHotspotHelperHandler block to execute to process helper commands.

Return Value

true if the registration was successful, false otherwise

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.

See Also

Registering a hotspot helper