Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Internal type, represents a Bluetooth operation to be performed on a peripheral. Used by SGBlePeripheralQueue. More...
#include <SGBleRequest.h>
Instance Methods | |
(instancetype) | - initWithRequestType:executeHandler:completionHandler: |
Initializes a SGBleRequest instance with a specific Bluetooth operation to run. | |
(nullable NSError *) | - execute |
Execute the associated request. | |
(void) | - notifyResult: |
Called by the execution block to notify this instance of the request outcome. | |
Class Methods | |
(NSString *) | + requestTypeToString: |
Gets the string version of a SGBleRequestType value. | |
Properties | |
SGBleRequestType | type |
Gets the type of request associated with this instance. | |
Internal type, represents a Bluetooth operation to be performed on a peripheral. Used by SGBlePeripheralQueue.
- (instancetype) initWithRequestType: | (SGBleRequestType) | requestType | |
executeHandler: | (SGBleRequestExecuteHandler) | executeHandler | |
completionHandler: | (nullable SGBleRequestCompletionHandler) | completionHandler | |
Initializes a SGBleRequest instance with a specific Bluetooth operation to run.
requestType | The type of request associated with this instance. |
executeHandler | The operation to run, returns an error if it has failed to be run. |
completionHandler | Called when the operation has completed (successfully or not), may be nil. |