BeaconDetectManager
public class BeaconDetectManager : NSObject, CLLocationManagerDelegate, CBCentralManagerDelegate
Beacon detect manager class
-
Manager status.
See moreDeclaration
Swift
public enum State
-
A delegate of BeaconDetectManager.
Declaration
Swift
weak public var delegate: BeaconDetectManagerDelegate?
-
Current state
Declaration
Swift
public private(set) var state: BeaconDetectManager.State
-
A target’s ProximityUUID
Declaration
Swift
public private(set) var proximityUUID: String
-
An array of target’s major/minor.
Declaration
Swift
public private(set) var majorMinorArray: [BeaconDetectManager.MajorMinor]
-
Detect target type.
Declaration
Swift
public private(set) var detectTarget: BeaconDetectManager.DetectTarget
-
Undocumented
Declaration
Swift
public private(set) var eventOption: BeaconDetectManager.EventOption
-
Singleton shared instance.
Declaration
Swift
public static let sharedManager: BeaconDetectManager
-
Start detecting beacon.
Declaration
Swift
public func start(_ proximityUUID: String, eventOption: EventOption, majorMinorArray: [MajorMinor] = [MajorMinor]())
Parameters
proximityUUID
A target’s ProximityUUID.
eventOption
Allowed event.
majorMinorArray
An array of target’s major/minor. Default is empty array.
-
Stop detecting beacon.
Declaration
Swift
public func stop()
-
Invoked whenever the central manager’s state has been updated
Declaration
Swift
public func centralManagerDidUpdateState(_ central: CBCentralManager)
-
Detect targets
See moreDeclaration
Swift
public enum DetectTarget
-
Event option
See moreDeclaration
Swift
public struct EventOption : OptionSet
-
Beacon major and minor values.
See moreDeclaration
Swift
public struct MajorMinor