Package org.robovm.apple.corebluetooth
Class CBPeripheralManager
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.corebluetooth.CBPeripheralManager
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class CBPeripheralManager extends NSObject
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CBPeripheralManager.CBPeripheralManagerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description CBPeripheralManager()
CBPeripheralManager(CBPeripheralManagerDelegate delegate, DispatchQueue queue)
CBPeripheralManager(CBPeripheralManagerDelegate delegate, DispatchQueue queue, CBPeripheralManagerOptions options)
protected
CBPeripheralManager(NSObject.Handle h, long handle)
protected
CBPeripheralManager(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
CBPeripheralManager
public CBPeripheralManager()
-
CBPeripheralManager
protected CBPeripheralManager(NSObject.Handle h, long handle)
-
CBPeripheralManager
protected CBPeripheralManager(NSObject.SkipInit skipInit)
-
CBPeripheralManager
public CBPeripheralManager(CBPeripheralManagerDelegate delegate, DispatchQueue queue)
-
CBPeripheralManager
public CBPeripheralManager(CBPeripheralManagerDelegate delegate, DispatchQueue queue, CBPeripheralManagerOptions options)
- Since:
- Available in iOS 7.0 and later.
-
-
Method Detail
-
getDelegate
public CBPeripheralManagerDelegate getDelegate()
-
setDelegate
public void setDelegate(CBPeripheralManagerDelegate v)
-
isAdvertising
public boolean isAdvertising()
-
getState
public CBManagerState getState()
-
init
protected long init(CBPeripheralManagerDelegate delegate, DispatchQueue queue)
-
init
protected long init(CBPeripheralManagerDelegate delegate, DispatchQueue queue, CBPeripheralManagerOptions options)
- Since:
- Available in iOS 7.0 and later.
-
startAdvertising
public void startAdvertising(CBAdvertisementData advertisementData)
-
stopAdvertising
public void stopAdvertising()
-
setDesiredConnectionLatency
public void setDesiredConnectionLatency(CBPeripheralManagerConnectionLatency latency, CBCentral central)
-
addService
public void addService(CBMutableService service)
-
removeService
public void removeService(CBMutableService service)
-
removeAllServices
public void removeAllServices()
-
respondToRequest
public void respondToRequest(CBATTRequest request, CBATTErrorCode result)
-
updateValue
public boolean updateValue(NSData value, CBMutableCharacteristic characteristic, NSArray<CBCentral> centrals)
-
publishL2CAPChannel
public void publishL2CAPChannel(boolean encryptionRequired)
- Since:
- Available in iOS 11.0 and later.
-
unpublishL2CAPChannel
public void unpublishL2CAPChannel(short PSM)
- Since:
- Available in iOS 11.0 and later.
-
authorizationStatus
public static CBPeripheralManagerAuthorizationStatus authorizationStatus()
- Since:
- Available in iOS 7.0 and later.
-
-