Package org.robovm.apple.corebluetooth
Class CBPeripheral
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.corebluetooth.CBPeer
-
- org.robovm.apple.corebluetooth.CBPeripheral
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class CBPeripheral extends CBPeer
- Since:
- Available in iOS 5.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CBPeripheral.CBPeripheralPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corebluetooth.CBPeer
CBPeer.CBPeerPtr
-
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 protected
CBPeripheral()
protected
CBPeripheral(NSObject.Handle h, long handle)
protected
CBPeripheral(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.corebluetooth.CBPeer
getIdentifier
-
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
-
CBPeripheral
protected CBPeripheral()
-
CBPeripheral
protected CBPeripheral(NSObject.Handle h, long handle)
-
CBPeripheral
protected CBPeripheral(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getDelegate
public CBPeripheralDelegate getDelegate()
-
setDelegate
public void setDelegate(CBPeripheralDelegate v)
-
getName
public java.lang.String getName()
-
getRSSI
@Deprecated public NSNumber getRSSI()
Deprecated.Deprecated in iOS 8.0.- Since:
- Available in iOS 5.0 and later.
-
getState
public CBPeripheralState getState()
-
canSendWriteWithoutResponse
public boolean canSendWriteWithoutResponse()
-
readRSSI
public void readRSSI()
-
discoverIncludedServices
public void discoverIncludedServices(NSArray<CBUUID> includedServiceUUIDs, CBService service)
-
discoverCharacteristics
public void discoverCharacteristics(NSArray<CBUUID> characteristicUUIDs, CBService service)
-
readValue
public void readValue(CBCharacteristic characteristic)
-
maximumWriteValueLengthForType
public long maximumWriteValueLengthForType(CBCharacteristicWriteType type)
- Since:
- Available in iOS 9.0 and later.
-
writeValue
public void writeValue(NSData data, CBCharacteristic characteristic, CBCharacteristicWriteType type)
-
setNotifyValue
public void setNotifyValue(boolean enabled, CBCharacteristic characteristic)
-
discoverDescriptors
public void discoverDescriptors(CBCharacteristic characteristic)
-
readValue
public void readValue(CBDescriptor descriptor)
-
writeValue
public void writeValue(NSData data, CBDescriptor descriptor)
-
openL2CAPChannel
public void openL2CAPChannel(short PSM)
- Since:
- Available in iOS 11.0 and later.
-
-