pub unsafe trait CBPeripheralManagerDelegate: NSObjectProtocol {
// Provided methods
unsafe fn peripheralManagerDidUpdateState(
&self,
peripheral: &CBPeripheralManager
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_willRestoreState(
&self,
peripheral: &CBPeripheralManager,
dict: &NSDictionary<NSString, AnyObject>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManagerDidStartAdvertising_error(
&self,
peripheral: &CBPeripheralManager,
error: Option<&NSError>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didAddService_error(
&self,
peripheral: &CBPeripheralManager,
service: &CBService,
error: Option<&NSError>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_central_didSubscribeToCharacteristic(
&self,
peripheral: &CBPeripheralManager,
central: &CBCentral,
characteristic: &CBCharacteristic
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_central_didUnsubscribeFromCharacteristic(
&self,
peripheral: &CBPeripheralManager,
central: &CBCentral,
characteristic: &CBCharacteristic
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didReceiveReadRequest(
&self,
peripheral: &CBPeripheralManager,
request: &CBATTRequest
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didReceiveWriteRequests(
&self,
peripheral: &CBPeripheralManager,
requests: &NSArray<CBATTRequest>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManagerIsReadyToUpdateSubscribers(
&self,
peripheral: &CBPeripheralManager
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didPublishL2CAPChannel_error(
&self,
peripheral: &CBPeripheralManager,
psm: CBL2CAPPSM,
error: Option<&NSError>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didUnpublishL2CAPChannel_error(
&self,
peripheral: &CBPeripheralManager,
psm: CBL2CAPPSM,
error: Option<&NSError>
)
where Self: Sized + Message { ... }
unsafe fn peripheralManager_didOpenL2CAPChannel_error(
&self,
peripheral: &CBPeripheralManager,
channel: Option<&CBL2CAPChannel>,
error: Option<&NSError>
)
where Self: Sized + Message { ... }
}Available on crate feature
CBPeripheralManager only.Provided Methods§
unsafe fn peripheralManagerDidUpdateState( &self, peripheral: &CBPeripheralManager )
Available on crate feature
CBManager only.unsafe fn peripheralManager_willRestoreState( &self, peripheral: &CBPeripheralManager, dict: &NSDictionary<NSString, AnyObject> )
Available on crate feature
CBManager only.unsafe fn peripheralManagerDidStartAdvertising_error( &self, peripheral: &CBPeripheralManager, error: Option<&NSError> )
Available on crate feature
CBManager only.unsafe fn peripheralManager_didAddService_error( &self, peripheral: &CBPeripheralManager, service: &CBService, error: Option<&NSError> )
Available on crate features
CBAttribute and CBManager and CBService only.unsafe fn peripheralManager_central_didSubscribeToCharacteristic( &self, peripheral: &CBPeripheralManager, central: &CBCentral, characteristic: &CBCharacteristic )
Available on crate features
CBAttribute and CBCentral and CBCharacteristic and CBManager and CBPeer only.unsafe fn peripheralManager_central_didUnsubscribeFromCharacteristic( &self, peripheral: &CBPeripheralManager, central: &CBCentral, characteristic: &CBCharacteristic )
Available on crate features
CBAttribute and CBCentral and CBCharacteristic and CBManager and CBPeer only.unsafe fn peripheralManager_didReceiveReadRequest( &self, peripheral: &CBPeripheralManager, request: &CBATTRequest )
Available on crate features
CBATTRequest and CBManager only.unsafe fn peripheralManager_didReceiveWriteRequests( &self, peripheral: &CBPeripheralManager, requests: &NSArray<CBATTRequest> )
Available on crate features
CBATTRequest and CBManager only.unsafe fn peripheralManagerIsReadyToUpdateSubscribers( &self, peripheral: &CBPeripheralManager )
Available on crate feature
CBManager only.unsafe fn peripheralManager_didPublishL2CAPChannel_error( &self, peripheral: &CBPeripheralManager, psm: CBL2CAPPSM, error: Option<&NSError> )
Available on crate features
CBL2CAPChannel and CBManager only.unsafe fn peripheralManager_didUnpublishL2CAPChannel_error( &self, peripheral: &CBPeripheralManager, psm: CBL2CAPPSM, error: Option<&NSError> )
Available on crate features
CBL2CAPChannel and CBManager only.unsafe fn peripheralManager_didOpenL2CAPChannel_error( &self, peripheral: &CBPeripheralManager, channel: Option<&CBL2CAPChannel>, error: Option<&NSError> )
Available on crate features
CBL2CAPChannel and CBManager only.