NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CBCentralManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static CBCentralManager |
alloc() |
static CBCentralManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static long |
authorization_static() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
void |
cancelPeripheralConnection(CBPeripheral peripheral)
cancelPeripheralConnection:
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
void |
connectPeripheralOptions(CBPeripheral peripheral,
NSDictionary<java.lang.String,?> options)
connectPeripheral:options:
|
static java.lang.String |
debugDescription_static() |
CBCentralManagerDelegate |
delegate()
[@property] delegate
|
static java.lang.String |
description_static() |
static long |
hash_static() |
CBCentralManager |
init() |
CBCentralManager |
initWithDelegateQueue(CBCentralManagerDelegate delegate,
NSObject queue)
initWithDelegate:queue:
|
CBCentralManager |
initWithDelegateQueueOptions(CBCentralManagerDelegate delegate,
NSObject queue,
NSDictionary<java.lang.String,?> options)
initWithDelegate:queue:options:
|
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) |
boolean |
isScanning()
[@property] isScanning
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CBCentralManager |
new_objc() |
void |
registerForConnectionEventsWithOptions(NSDictionary<java.lang.String,?> options)
registerForConnectionEventsWithOptions:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSArray<? extends CBPeripheral> |
retrieveConnectedPeripheralsWithServices(NSArray<? extends CBUUID> serviceUUIDs)
retrieveConnectedPeripheralsWithServices
|
NSArray<? extends CBPeripheral> |
retrievePeripheralsWithIdentifiers(NSArray<? extends NSUUID> identifiers)
retrievePeripheralsWithIdentifiers:
|
void |
scanForPeripheralsWithServicesOptions(NSArray<? extends CBUUID> serviceUUIDs,
NSDictionary<java.lang.String,?> options)
scanForPeripheralsWithServices:options:
|
void |
setDelegate_unsafe(CBCentralManagerDelegate value)
[@property] delegate
|
void |
setDelegate(CBCentralManagerDelegate value)
[@property] delegate
|
static void |
setVersion_static(long aVersion) |
void |
stopScan()
stopScan:
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsFeatures(long features)
supportsFeatures
|
static long |
version_static() |
authorization, stateaccessibilityActivate, 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 CBCentralManager alloc()
public static CBCentralManager 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 CBCentralManager 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()
public void cancelPeripheralConnection(CBPeripheral peripheral)
Cancels an active or pending connection to peripheral. Note that this is non-blocking, and any CBPeripheral
commands that are still pending to peripheral may or may not complete.
peripheral - A CBPeripheral.centralManager:didDisconnectPeripheral:error:public void connectPeripheralOptions(CBPeripheral peripheral, NSDictionary<java.lang.String,?> options)
Initiates a connection to peripheral. Connection attempts never time out and, depending on the outcome, will result
in a call to either centralManager:didConnectPeripheral: or centralManager:didFailToConnectPeripheral:error:.
Pending attempts are cancelled automatically upon deallocation of peripheral, and explicitly via cancelPeripheralConnection.
peripheral - The CBPeripheral to be connected.options - An optional dictionary specifying connection behavior options.CBConnectPeripheralOptionRequiresANCS,
centralManager:didConnectPeripheral:,
centralManager:didFailToConnectPeripheral:error:,
CBConnectPeripheralOptionNotifyOnConnectionKey,
CBConnectPeripheralOptionNotifyOnDisconnectionKey,
CBConnectPeripheralOptionNotifyOnNotificationKey,
CBConnectPeripheralOptionEnableTransportBridgingKeypublic CBCentralManagerDelegate delegate()
The delegate object that will receive central events.
public CBCentralManager init()
public CBCentralManager initWithDelegateQueue(CBCentralManagerDelegate delegate, NSObject queue)
The initialization call. The events of the central role will be dispatched on the provided queue. If nil, the main queue will be used.
delegate - The delegate that will receive central role events.queue - The dispatch queue on which the events will be dispatched.public CBCentralManager initWithDelegateQueueOptions(CBCentralManagerDelegate delegate, NSObject queue, NSDictionary<java.lang.String,?> options)
The initialization call. The events of the central role will be dispatched on the provided queue. If nil, the main queue will be used.
delegate - The delegate that will receive central role events.queue - The dispatch queue on which the events will be dispatched.options - An optional dictionary specifying options for the manager.CBCentralManagerOptionShowPowerAlertKey,
CBCentralManagerOptionRestoreIdentifierKeypublic boolean isScanning()
Whether or not the central is currently scanning.
public NSArray<? extends CBPeripheral> retrieveConnectedPeripheralsWithServices(NSArray<? extends CBUUID> serviceUUIDs)
Retrieves all peripherals that are connected to the system and implement any of the services listed in serviceUUIDs.
Note that this set can include peripherals which were connected by other applications, which will need to be connected locally
via connectPeripheral:options: before they can be used.
CBPeripheral objects.public NSArray<? extends CBPeripheral> retrievePeripheralsWithIdentifiers(NSArray<? extends NSUUID> identifiers)
Attempts to retrieve the CBPeripheral object(s) with the corresponding identifiers.
identifiers - A list of NSUUID objects.CBPeripheral objects.public void scanForPeripheralsWithServicesOptions(NSArray<? extends CBUUID> serviceUUIDs, NSDictionary<java.lang.String,?> options)
Starts scanning for peripherals that are advertising any of the services listed in serviceUUIDs. Although strongly discouraged,
if serviceUUIDs is nil all discovered peripherals will be returned. If the central is already scanning with different
serviceUUIDs or options, the provided parameters will replace them.
Applications that have specified the bluetooth-central background mode are allowed to scan while backgrounded, with two
caveats: the scan must specify one or more service types in serviceUUIDs, and the CBCentralManagerScanOptionAllowDuplicatesKey
scan option will be ignored.
serviceUUIDs - A list of CBUUID objects representing the service(s) to scan for.options - An optional dictionary specifying options for the scan.CBCentralManagerScanOptionSolicitedServiceUUIDsKey,
centralManager:didDiscoverPeripheral:advertisementData:RSSI:,
CBCentralManagerScanOptionAllowDuplicatesKeypublic void setDelegate_unsafe(CBCentralManagerDelegate value)
The delegate object that will receive central events.
public void setDelegate(CBCentralManagerDelegate value)
The delegate object that will receive central events.
public void stopScan()
Stops scanning for peripherals.
public static long authorization_static()
public void registerForConnectionEventsWithOptions(NSDictionary<java.lang.String,?> options)
Calls centralManager:connectionEventDidOccur:forPeripheral: when a connection event occurs matching any of the given options.
Passing nil in the option parameter clears any prior registered matching options.
options - A dictionary specifying connection event options.centralManager:connectionEventDidOccur:forPeripheral:,
CBConnectionEventMatchingOptionServiceUUIDs,
CBConnectionEventMatchingOptionPeripheralUUIDspublic static boolean supportsFeatures(long features)
Returns a boolean value representing the support for the provided features.
features - One or more features you would like to check if supported.