Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
SGBleRequest Class Reference

Internal type, represents a Bluetooth operation to be performed on a peripheral. Used by SGBlePeripheralQueue. More...

#include <SGBleRequest.h>

Inheritance diagram for SGBleRequest:

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.
 

Detailed Description

Internal type, represents a Bluetooth operation to be performed on a peripheral. Used by SGBlePeripheralQueue.

Method Documentation

◆ initWithRequestType:executeHandler:completionHandler:

- (instancetype) initWithRequestType: (SGBleRequestType)  requestType
executeHandler: (SGBleRequestExecuteHandler executeHandler
completionHandler: (nullable SGBleRequestCompletionHandler completionHandler 

Initializes a SGBleRequest instance with a specific Bluetooth operation to run.

Parameters
requestTypeThe type of request associated with this instance.
executeHandlerThe operation to run, returns an error if it has failed to be run.
completionHandlerCalled when the operation has completed (successfully or not), may be nil.

The documentation for this class was generated from the following files: