public final class CoreBluetooth
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
CBAdvertisementDataIsConnectable()
[@constant] CBAdvertisementDataIsConnectable
|
static java.lang.String |
CBAdvertisementDataLocalNameKey()
[@constant] CBAdvertisementDataLocalNameKey
|
static java.lang.String |
CBAdvertisementDataManufacturerDataKey()
[@constant] CBAdvertisementDataManufacturerDataKey
|
static java.lang.String |
CBAdvertisementDataOverflowServiceUUIDsKey()
[@constant] CBAdvertisementDataOverflowServiceUUIDsKey
|
static java.lang.String |
CBAdvertisementDataServiceDataKey()
[@constant] CBAdvertisementDataServiceDataKey
|
static java.lang.String |
CBAdvertisementDataServiceUUIDsKey()
[@constant] CBAdvertisementDataServiceUUIDsKey
|
static java.lang.String |
CBAdvertisementDataSolicitedServiceUUIDsKey()
[@constant] CBAdvertisementDataSolicitedServiceUUIDsKey
|
static java.lang.String |
CBAdvertisementDataTxPowerLevelKey()
[@constant] CBAdvertisementDataTxPowerLevelKey
|
static java.lang.String |
CBATTErrorDomain() |
static java.lang.String |
CBCentralManagerOptionRestoreIdentifierKey()
[@const] CBCentralManagerOptionRestoreIdentifierKey
|
static java.lang.String |
CBCentralManagerOptionShowPowerAlertKey()
[@const] CBCentralManagerOptionShowPowerAlertKey
|
static java.lang.String |
CBCentralManagerRestoredStatePeripheralsKey()
[@const] CBCentralManagerRestoredStatePeripheralsKey
|
static java.lang.String |
CBCentralManagerRestoredStateScanOptionsKey()
[@const] CBCentralManagerRestoredStateScanOptionsKey
|
static java.lang.String |
CBCentralManagerRestoredStateScanServicesKey()
[@const] CBCentralManagerRestoredStateScanServicesKey
|
static java.lang.String |
CBCentralManagerScanOptionAllowDuplicatesKey()
[@const] CBCentralManagerScanOptionAllowDuplicatesKey
|
static java.lang.String |
CBCentralManagerScanOptionSolicitedServiceUUIDsKey()
[@const] CBCentralManagerScanOptionSolicitedServiceUUIDsKey
|
static java.lang.String |
CBConnectionEventMatchingOptionPeripheralUUIDs()
[@const] CBConnectionEventMatchingOptionPeripheralUUIDs
|
static java.lang.String |
CBConnectionEventMatchingOptionServiceUUIDs()
[@const] CBConnectionEventMatchingOptionServiceUUIDs
|
static java.lang.String |
CBConnectPeripheralOptionEnableTransportBridgingKey()
[@const] CBConnectPeripheralOptionEnableTransportBridgingKey
|
static java.lang.String |
CBConnectPeripheralOptionNotifyOnConnectionKey()
[@const] CBConnectPeripheralOptionNotifyOnConnectionKey
|
static java.lang.String |
CBConnectPeripheralOptionNotifyOnDisconnectionKey()
[@const] CBConnectPeripheralOptionNotifyOnDisconnectionKey
|
static java.lang.String |
CBConnectPeripheralOptionNotifyOnNotificationKey()
[@const] CBConnectPeripheralOptionNotifyOnNotificationKey
|
static java.lang.String |
CBConnectPeripheralOptionRequiresANCS()
[@const] CBConnectPeripheralOptionRequiresANCS
|
static java.lang.String |
CBConnectPeripheralOptionStartDelayKey()
[@const] CBConnectPeripheralOptionStartDelayKey
|
static java.lang.String |
CBErrorDomain() |
static java.lang.String |
CBPeripheralManagerOptionRestoreIdentifierKey()
[@const] CBPeripheralManagerOptionRestoreIdentifierKey
|
static java.lang.String |
CBPeripheralManagerOptionShowPowerAlertKey()
[@const] CBPeripheralManagerOptionShowPowerAlertKey
|
static java.lang.String |
CBPeripheralManagerRestoredStateAdvertisementDataKey()
[@const] CBPeripheralManagerRestoredStateAdvertisementDataKey
|
static java.lang.String |
CBPeripheralManagerRestoredStateServicesKey()
[@const] CBPeripheralManagerRestoredStateServicesKey
|
static java.lang.String |
CBUUIDCharacteristicAggregateFormatString()
[@const] CBUUIDCharacteristicAggregateFormatString
|
static java.lang.String |
CBUUIDCharacteristicExtendedPropertiesString()
[@const] CBUUIDCharacteristicExtendedPropertiesString
|
static java.lang.String |
CBUUIDCharacteristicFormatString()
[@const] CBUUIDCharacteristicFormatString
|
static java.lang.String |
CBUUIDCharacteristicUserDescriptionString()
[@const] CBUUIDCharacteristicUserDescriptionString
|
static java.lang.String |
CBUUIDCharacteristicValidRangeString()
[@const] CBUUIDCharacteristicValidRangeString
|
static java.lang.String |
CBUUIDClientCharacteristicConfigurationString()
[@const] CBUUIDClientCharacteristicConfigurationString
|
static java.lang.String |
CBUUIDL2CAPPSMCharacteristicString()
[@const] CBUUIDL2CAPPSMCharacteristicString
|
static java.lang.String |
CBUUIDServerCharacteristicConfigurationString()
[@const] CBUUIDServerCharacteristicConfigurationString
|
public static java.lang.String CBAdvertisementDataLocalNameKey()
A NSString containing the local name of a peripheral.
public static java.lang.String CBAdvertisementDataTxPowerLevelKey()
A NSNumber containing the transmit power of a peripheral.
public static java.lang.String CBAdvertisementDataServiceUUIDsKey()
A list of one or more CBUUID objects, representing CBService UUIDs.
public static java.lang.String CBAdvertisementDataServiceDataKey()
A dictionary containing service-specific advertisement data. Keys are CBUUID objects, representing
CBService UUIDs. Values are NSData objects.
public static java.lang.String CBAdvertisementDataManufacturerDataKey()
A NSData object containing the manufacturer data of a peripheral.
public static java.lang.String CBAdvertisementDataOverflowServiceUUIDsKey()
A list of one or more CBUUID objects, representing CBService UUIDs that were
found in the "overflow" area of the advertising data. Due to the nature of the data stored in this area,
UUIDs listed here are "best effort" and may not always be accurate.
startAdvertising:public static java.lang.String CBAdvertisementDataIsConnectable()
An NSNumber (Boolean) indicating whether or not the advertising event type was connectable. This can be used to determine whether or not a peripheral is connectable in that instant.
public static java.lang.String CBAdvertisementDataSolicitedServiceUUIDsKey()
A list of one or more CBUUID objects, representing CBService UUIDs.
public static java.lang.String CBCentralManagerOptionShowPowerAlertKey()
An NSNumber (Boolean) indicating that the system should, if Bluetooth is powered off when CBCentralManager is instantiated, display
a warning dialog to the user.
initWithDelegate:queue:options:public static java.lang.String CBCentralManagerOptionRestoreIdentifierKey()
An NSString containing a unique identifier (UID) for the CBCentralManager that is being instantiated. This UID is used
by the system to identify a specific CBCentralManager instance for restoration and, therefore, must remain the same for
subsequent application executions in order for the manager to be restored.
initWithDelegate:queue:options:,
centralManager:willRestoreState:public static java.lang.String CBCentralManagerScanOptionAllowDuplicatesKey()
An NSNumber (Boolean) indicating that the scan should run without duplicate filtering. By default, multiple discoveries of the same peripheral are coalesced into a single discovery event. Specifying this option will cause a discovery event to be generated every time the peripheral is seen, which may be many times per second. This can be useful in specific situations, such as making a connection based on a peripheral's RSSI, but may have an adverse affect on battery-life and application performance.
scanForPeripheralsWithServices:options:public static java.lang.String CBCentralManagerScanOptionSolicitedServiceUUIDsKey()
An NSArray of CBUUID objects respresenting service UUIDs. Causes the scan to also look for peripherals soliciting
any of the services contained in the list.
scanForPeripheralsWithServices:options:public static java.lang.String CBConnectPeripheralOptionNotifyOnConnectionKey()
An NSNumber (Boolean) indicating that the system should display a connection alert for a given peripheral, if the application is suspended
when a successful connection is made.
This is useful for applications that have not specified the bluetooth-central background mode and cannot display their
own alert. If more than one application has requested notification for a given peripheral, the one that was most recently in the foreground
will receive the alert.
connectPeripheral:public static java.lang.String CBConnectPeripheralOptionNotifyOnDisconnectionKey()
An NSNumber (Boolean) indicating that the system should display a disconnection alert for a given peripheral, if the application
is suspended at the time of the disconnection.
This is useful for applications that have not specified the bluetooth-central background mode and cannot display their
own alert. If more than one application has requested notification for a given peripheral, the one that was most recently in the foreground
will receive the alert.
connectPeripheral:public static java.lang.String CBConnectPeripheralOptionNotifyOnNotificationKey()
An NSNumber (Boolean) indicating that the system should display an alert for all notifications received from a given peripheral, if
the application is suspended at the time.
This is useful for applications that have not specified the bluetooth-central background mode and cannot display their
own alert. If more than one application has requested notification for a given peripheral, the one that was most recently in the foreground
will receive the alert.
connectPeripheral:public static java.lang.String CBCentralManagerRestoredStatePeripheralsKey()
An NSArray of CBPeripheral objects containing all peripherals that were connected or pending connection at the time the
application was terminated by the system. When possible, all known information for each peripheral will be restored, including any discovered
services, characteristics and descriptors, as well as characteristic notification states.
centralManager:willRestoreState:,
connectPeripheral:options:public static java.lang.String CBCentralManagerRestoredStateScanServicesKey()
An NSArray of CBUUID objects containing the service(s) being scanned for at the time the application was terminated by the system.
centralManager:willRestoreState:,
scanForPeripheralsWithServices:options:public static java.lang.String CBCentralManagerRestoredStateScanOptionsKey()
An NSDictionary containing the scan options at the time the application was terminated by the system.
centralManager:willRestoreState:,
scanForPeripheralsWithServices:options:public static java.lang.String CBErrorDomain()
public static java.lang.String CBATTErrorDomain()
public static java.lang.String CBPeripheralManagerOptionShowPowerAlertKey()
An NSNumber (Boolean) indicating that the system should, if Bluetooth is powered off when CBPeripheralManager is instantiated, display
a warning dialog to the user.
initWithDelegate:queue:options:public static java.lang.String CBPeripheralManagerOptionRestoreIdentifierKey()
An NSString containing a unique identifier (UID) for the CBPeripheralManager that is being instantiated. This UID is used
by the system to identify a specific CBPeripheralManager instance for restoration and, therefore, must remain the same for
subsequent application executions in order for the manager to be restored.
initWithDelegate:queue:options:,
centralManager:willRestoreState:public static java.lang.String CBPeripheralManagerRestoredStateServicesKey()
An NSArray of CBMutableService objects containing all services that were published to the local database at the time the
application was terminated by the system. All information for each service will be restored, including all discovered
services, characteristics and descriptors, as well as characteristic notification states.
peripheralManager:willRestoreState:,
addService:public static java.lang.String CBPeripheralManagerRestoredStateAdvertisementDataKey()
An NSDictionary containing the data being advertised at the time the application was terminated by the system.
peripheralManager:willRestoreState:,
startAdvertising:public static java.lang.String CBUUIDCharacteristicExtendedPropertiesString()
The string representation of the UUID for the extended properties descriptor.
The corresponding value for this descriptor is an NSNumber object.
public static java.lang.String CBUUIDCharacteristicUserDescriptionString()
The string representation of the UUID for the user description descriptor.
The corresponding value for this descriptor is an NSString object.
public static java.lang.String CBUUIDClientCharacteristicConfigurationString()
The string representation of the UUID for the client configuration descriptor.
The corresponding value for this descriptor is an NSNumber object.
public static java.lang.String CBUUIDServerCharacteristicConfigurationString()
The string representation of the UUID for the server configuration descriptor.
The corresponding value for this descriptor is an NSNumber object.
public static java.lang.String CBUUIDCharacteristicFormatString()
The string representation of the UUID for the presentation format descriptor.
The corresponding value for this descriptor is an NSData object.
public static java.lang.String CBUUIDCharacteristicAggregateFormatString()
The string representation of the UUID for the aggregate descriptor.
public static java.lang.String CBUUIDCharacteristicValidRangeString()
Data representing the valid min/max values accepted for a characteristic.
public static java.lang.String CBUUIDL2CAPPSMCharacteristicString()
The PSM (a little endian uint16_t) of an L2CAP Channel associated with the GATT service containing this characteristic. Servers can publish this characteristic with the UUID ABDD3056-28FA-441D-A470-55A75A52553A
public static java.lang.String CBConnectPeripheralOptionStartDelayKey()
An NSNumber indicating the number of seconds for the system to wait before starting a connection.
connectPeripheral:public static java.lang.String CBConnectPeripheralOptionEnableTransportBridgingKey()
An NSNumber (Boolean) indicating that the system will bring up classic transport profiles when low energy transport for peripheral is connected.
connectPeripheral:public static java.lang.String CBConnectPeripheralOptionRequiresANCS()
An NSNumber (Boolean) indicating that the ANCS (Apple Notification Center Service) is required for the peripheral is connected.
connectPeripheral:public static java.lang.String CBConnectionEventMatchingOptionServiceUUIDs()
An NSArray of CBUUID objects respresenting service UUIDs. A connected peer with any matching service UUIDs will result
in a call to centralManager:connectionEventDidOccur:.
A maximum of 4 services can be registered.
centralManager:connectionEventDidOccur:forPeripheral:,
registerForConnectionEventsWithOptions:public static java.lang.String CBConnectionEventMatchingOptionPeripheralUUIDs()
An NSArray of NSUUID objects respresenting peripheral identifiers. A connected peer with any matching identifier(s) will result
in a call to centralManager:connectionEventDidOccur:.
centralManager:connectionEventDidOccur:forPeripheral:,
registerForConnectionEventsWithOptions: