Table of Contents

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 ICBPeripheralManagerDelegate
options CBPeripheralManagerInitOptions

Properties

CallbackContext

ICBPeripheralManagerDelegate callbacks will be called in this context.

public SynchronizationContext CallbackContext { get; set; }

Property Value

SynchronizationContext

Delegate

public ICBPeripheralManagerDelegate Delegate { get; set; }

Property Value

ICBPeripheralManagerDelegate

IsAdvertising

public bool IsAdvertising { get; }

Property Value

bool

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 CBATTRequest
result 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 CBMutableCharacteristic
subscribedCentrals CBCentral[]

Returns

bool