Beacon
@objc(ZDBeacon)
public class Beacon : NSObject
Beacon
Discussion: An iBeacon is a device that emits a Bluetooth signal that can be detected by your devices. The bluetooth advertisement can be defined by UUID, major and minor values. UUID must be specified. If only UUID is specified, the major and minor values will be wildcarded. Similarly if only UUID and major value are specified, the minor value will be wild carded.
-
String representation of an UUID such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”. If the string is not valid, the region monitoring for the iBeacon device will fail
Declaration
Swift
@objc public var uuidString: String
-
Major value send in the adv packet of the beacon. This value will be -1 if wildcarded
Declaration
Swift
@objc public var major: Int32
-
Minor value send in the adv packet of the beacon. This value will be -1 if wildcarded
Declaration
Swift
@objc public var minor: Int32
-
Initializer for the beacon. The major and minor values will be wildcarded
Declaration
Swift
@objc public convenience init(UUIDString: String)
-
Initializer for the beacon. The minor value is wildcarded
Declaration
Swift
@objc public convenience init(UUIDString: String, major: Int32)
-
Initializer for the beacon.
Declaration
Swift
@objc public convenience init(UUIDString: String, major: Int32, minor: Int32)