NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CBPeripheral(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static CBPeripheral |
alloc() |
static CBPeripheral |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
ancsAuthorized()
[@property] ancsAuthorized
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
canSendWriteWithoutResponse()
[@property] canSendWriteWithoutResponse
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
CBPeripheralDelegate |
delegate()
[@property] delegate
|
static java.lang.String |
description_static() |
void |
discoverCharacteristicsForService(NSArray<? extends CBUUID> characteristicUUIDs,
CBService service)
discoverCharacteristics:forService:
|
void |
discoverDescriptorsForCharacteristic(CBCharacteristic characteristic)
discoverDescriptorsForCharacteristic:
|
void |
discoverIncludedServicesForService(NSArray<? extends CBUUID> includedServiceUUIDs,
CBService service)
discoverIncludedServices:forService:
|
void |
discoverServices(NSArray<? extends CBUUID> serviceUUIDs)
discoverServices:
|
static long |
hash_static() |
CBPeripheral |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
maximumWriteValueLengthForType(long type)
maximumWriteValueLengthForType:
|
java.lang.String |
name()
[@property] name
|
static CBPeripheral |
new_objc() |
void |
openL2CAPChannel(char PSM)
openL2CAPChannel:
|
void |
readRSSI()
readRSSI
|
void |
readValueForCharacteristic(CBCharacteristic characteristic)
readValueForCharacteristic:
|
void |
readValueForDescriptor(CBDescriptor descriptor)
readValueForDescriptor:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSNumber |
RSSI()
Deprecated.
Use
peripheral:didReadRSSI:error: instead. |
NSArray<? extends CBService> |
services()
[@property] services
|
void |
setDelegate_unsafe(CBPeripheralDelegate value)
[@property] delegate
|
void |
setDelegate(CBPeripheralDelegate value)
[@property] delegate
|
void |
setNotifyValueForCharacteristic(boolean enabled,
CBCharacteristic characteristic)
setNotifyValue:forCharacteristic:
|
static void |
setVersion_static(long aVersion) |
long |
state()
[@property] state
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
void |
writeValueForCharacteristicType(NSData data,
CBCharacteristic characteristic,
long type)
writeValue:forCharacteristic:type:
|
void |
writeValueForDescriptor(NSData data,
CBDescriptor descriptor)
writeValue:forDescriptor:
|
copyWithZone, identifieraccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CBPeripheral alloc()
public static CBPeripheral allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CBPeripheral new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
@Deprecated public NSNumber RSSI()
peripheral:didReadRSSI:error: instead.The most recently read RSSI, in decibels.
public CBPeripheralDelegate delegate()
The delegate object that will receive peripheral events.
public void discoverCharacteristicsForService(NSArray<? extends CBUUID> characteristicUUIDs, CBService service)
Discovers the specified characteristic(s) of service.
characteristicUUIDs - A list of CBUUID objects representing the characteristic types to be discovered. If nil,
all characteristics of service will be discovered.service - A GATT service.peripheral:didDiscoverCharacteristicsForService:error:public void discoverDescriptorsForCharacteristic(CBCharacteristic characteristic)
Discovers the characteristic descriptor(s) of characteristic.
characteristic - A GATT characteristic.peripheral:didDiscoverDescriptorsForCharacteristic:error:public void discoverIncludedServicesForService(NSArray<? extends CBUUID> includedServiceUUIDs, CBService service)
Discovers the specified included service(s) of service.
includedServiceUUIDs - A list of CBUUID objects representing the included service types to be discovered. If nil,
all of services included services will be discovered, which is considerably slower and not recommended.service - A GATT service.peripheral:didDiscoverIncludedServicesForService:error:public void discoverServices(NSArray<? extends CBUUID> serviceUUIDs)
Discovers available service(s) on the peripheral.
serviceUUIDs - A list of CBUUID objects representing the service types to be discovered. If nil,
all services will be discovered.peripheral:didDiscoverServices:public CBPeripheral init()
public long maximumWriteValueLengthForType(long type)
The maximum amount of data, in bytes, that can be sent to a characteristic in a single write type.
writeValue:forCharacteristic:type:public java.lang.String name()
The name of the peripheral.
public void readRSSI()
While connected, retrieves the current RSSI of the link.
peripheral:didReadRSSI:error:public void readValueForCharacteristic(CBCharacteristic characteristic)
Reads the characteristic value for characteristic.
characteristic - A GATT characteristic.peripheral:didUpdateValueForCharacteristic:error:public void readValueForDescriptor(CBDescriptor descriptor)
Reads the value of descriptor.
descriptor - A GATT characteristic descriptor.peripheral:didUpdateValueForDescriptor:error:public NSArray<? extends CBService> services()
A list of CBService objects that have been discovered on the peripheral.
public void setDelegate_unsafe(CBPeripheralDelegate value)
The delegate object that will receive peripheral events.
public void setDelegate(CBPeripheralDelegate value)
The delegate object that will receive peripheral events.
public void setNotifyValueForCharacteristic(boolean enabled,
CBCharacteristic characteristic)
Enables or disables notifications/indications for the characteristic value of characteristic. If characteristic allows both, notifications will be used. When notifications/indications are enabled, updates to the characteristic value will be received via delegate method [@link] peripheral:didUpdateValueForCharacteristic:error: @/link. Since it is the peripheral that chooses when to send an update, the application should be prepared to handle them as long as notifications/indications remain enabled.
enabled - Whether or not notifications/indications should be enabled.characteristic - The characteristic containing the client characteristic configuration descriptor.peripheral:didUpdateNotificationStateForCharacteristic:error:,
CBConnectPeripheralOptionNotifyOnNotificationKeypublic long state()
The current connection state of the peripheral.
public void writeValueForCharacteristicType(NSData data, CBCharacteristic characteristic, long type)
Writes value to characteristic's characteristic value.
If the CBCharacteristicWriteWithResponse type is specified, peripheral:didWriteValueForCharacteristic:error:
is called with the result of the write request.
If the CBCharacteristicWriteWithoutResponse type is specified, and canSendWriteWithoutResponse is false, the delivery
of the data is best-effort and may not be guaranteed.
data - The value to write.characteristic - The characteristic whose characteristic value will be written.type - The type of write to be executed.peripheral:didWriteValueForCharacteristic:error:,
peripheralIsReadyToSendWriteWithoutResponse:,
canSendWriteWithoutResponse,
CBCharacteristicWriteTypepublic void writeValueForDescriptor(NSData data, CBDescriptor descriptor)
Writes data to descriptor's value. Client characteristic configuration descriptors cannot be written using this method, and should instead use @link setNotifyValue:forCharacteristic: @/link.
data - The value to write.descriptor - A GATT characteristic descriptor.peripheral:didWriteValueForCharacteristic:error:public boolean canSendWriteWithoutResponse()
YES if the remote device has space to send a write without response. If this value is NO, the value will be set to YES after the current writes have been flushed, and peripheralIsReadyToSendWriteWithoutResponse: will be called.
public void openL2CAPChannel(char PSM)
Attempt to open an L2CAP channel to the peripheral using the supplied PSM.
PSM - The PSM of the channel to openperipheral:didWriteValueForCharacteristic:error:public boolean ancsAuthorized()
YES if the remote device has been authorized to receive data over ANCS (Apple Notification Service Center) protocol. If this value is NO, the value will be set to YES after a user authorization occurs and didUpdateANCSAuthorizationForPeripheral: will be called.