Class CBPeripheralManager
- Namespace
- CoreBluetooth
public class CBPeripheralManager : CBManager, IDisposable
- Inheritance
-
CBPeripheralManager
- Implements
- Inherited Members
Constructors
CBPeripheralManager(ICBPeripheralManagerDelegate, CBPeripheralManagerInitOptions)
public CBPeripheralManager(ICBPeripheralManagerDelegate peripheralDelegate = null, CBPeripheralManagerInitOptions options = null)
Parameters
peripheralDelegate
ICBPeripheralManagerDelegateoptions
CBPeripheralManagerInitOptions
Properties
CallbackContext
ICBPeripheralManagerDelegate callbacks will be called in this context.
public SynchronizationContext CallbackContext { get; set; }
Property Value
Delegate
public ICBPeripheralManagerDelegate Delegate { get; set; }
Property Value
IsAdvertising
public bool IsAdvertising { get; }
Property Value
Methods
AddService(CBMutableService)
public void AddService(CBMutableService service)
Parameters
service
CBMutableService
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
RemoveAllServices()
public void RemoveAllServices()
RemoveService(CBMutableService)
public void RemoveService(CBMutableService service)
Parameters
service
CBMutableService
RespondToRequest(CBATTRequest, CBATTError)
public void RespondToRequest(CBATTRequest request, CBATTError result)
Parameters
request
CBATTRequestresult
CBATTError
StartAdvertising(StartAdvertisingOptions)
public void StartAdvertising(StartAdvertisingOptions options = null)
Parameters
options
StartAdvertisingOptions
StopAdvertising()
public void StopAdvertising()
UpdateValue(byte[], CBMutableCharacteristic, CBCentral[])
public bool UpdateValue(byte[] value, CBMutableCharacteristic characteristic, CBCentral[] subscribedCentrals = null)
Parameters
value
byte[]characteristic
CBMutableCharacteristicsubscribedCentrals
CBCentral[]