Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Definition of SGBleConnectionEvent and SGBleConnectionEventReason enumerations. More...
import <Foundation/Foundation.h>
import <CoreBluetooth/CoreBluetooth.h>
Go to the source code of this file.
Typedefs | |
typedef void(^ | SGBlePeripheralDiscoveryHandler) (CBPeripheral *_Nonnull peripheral, NSDictionary< NSString *, id > *_Nonnull advertisementData, NSNumber *_Nonnull rssi) |
Peripheral discovery handler. | |
typedef void(^ | SGBleConnectionEventHandler) (CBPeripheral *_Nonnull peripheral, SGBleConnectionEvent connectionEvent, NSError *_Nullable error) |
Peripheral connection event handler. | |
typedef void(^ | SGBleCharacteristicValueEventHandler) (SGBlePeripheralQueue *_Nonnull peripheralQueue, CBCharacteristic *_Nonnull characteristic, NSError *_Nullable error) |
Peripheral connection event handler. | |
Enumerations | |
enum | { SGBleConnectionEventConnecting , SGBleConnectionEventConnected , SGBleConnectionEventFailedToConnect , SGBleConnectionEventReady , SGBleConnectionEventDisconnecting , SGBleConnectionEventDisconnected } |
Peripheral connection events. More... | |
enum | { SGBleConnectionEventReasonUnknown = -1 , SGBleConnectionEventReasonSuccess = 0 , SGBleConnectionEventReasonCanceled , SGBleConnectionEventReasonNotSupported , SGBleConnectionEventReasonTimeout , SGBleConnectionEventReasonLinkLoss , SGBleConnectionEventReasonAdapterOff } |
Peripheral connection events reasons. More... | |
enum | { SGBleErrorOutOfMemory , SGBleErrorNotImplemented , SGBleErrorInvalidParameter , SGBleErrorInvalidState , SGBleErrorRequestCanceled , SGBleErrorPeripheralDisconnected } |
Error codes. More... | |
Definition of SGBleConnectionEvent and SGBleConnectionEventReason enumerations.