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
peripheralDelegateICBPeripheralManagerDelegateoptionsCBPeripheralManagerInitOptions
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
serviceCBMutableService
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
serviceCBMutableService
RespondToRequest(CBATTRequest, CBATTError)
public void RespondToRequest(CBATTRequest request, CBATTError result)
Parameters
requestCBATTRequestresultCBATTError
StartAdvertising(StartAdvertisingOptions)
public void StartAdvertising(StartAdvertisingOptions options = null)
Parameters
optionsStartAdvertisingOptions
StopAdvertising()
public void StopAdvertising()
UpdateValue(byte[], CBMutableCharacteristic, CBCentral[])
public bool UpdateValue(byte[] value, CBMutableCharacteristic characteristic, CBCentral[] subscribedCentrals = null)
Parameters
valuebyte[]characteristicCBMutableCharacteristicsubscribedCentralsCBCentral[]