BroadcastReceiver

public struct BroadcastReceiver : Hashable

BroadcastReceiver

Receives and handles broadcast intents sent from your device. Could be either a broadcastResult or an broadcast (corresponding, with orderedBroadcast or broadcast).

  • Creates a BroadcastReceiver

    Declaration

    Swift

    public init(_ block: @escaping ((BroadcastResult) -> Void))

    Parameters

    block

    contains the callback to call when the framework receives a correspoding result from an orderedBroadcast.

  • Creates a BroadcastReceiver

    Declaration

    Swift

    public init(_ block: @escaping ((Intent) -> Void))

    Parameters

    block

    contains the callback to call when the framework receives a broadcast from the Vuzix Device.