public class HMAccessory extends NSObject
This class represents an accessory in the home. There is a one to one relationship between a physical accessory and an object of this class. An accessory is composed of one or more services.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HMAccessory.Block_identifyWithCompletionHandler |
static interface |
HMAccessory.Block_updateNameCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
HMAccessory(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static HMAccessory |
alloc() |
static HMAccessory |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
NSArray<? extends HMCameraProfile> |
cameraProfiles()
Returns array of camera profiles implemented by the accessory.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
HMAccessoryCategory |
category()
Category information for the accessory.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
HMAccessoryDelegate |
delegate()
Delegate object that receives updates on the state of the accessory.
|
static java.lang.String |
description_static() |
java.lang.String |
firmwareVersion()
Accessory's firmware version.
|
static long |
hash_static() |
NSUUID |
identifier()
Deprecated.
|
NSArray<? extends NSUUID> |
identifiersForBridgedAccessories()
Deprecated.
|
void |
identifyWithCompletionHandler(HMAccessory.Block_identifyWithCompletionHandler completion)
This method is used to have an accessory identify itself.
|
HMAccessory |
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) |
boolean |
isBlocked()
TRUE if the accessory is blocked, FALSE otherwise.
|
boolean |
isBridged()
This property indicates whether this accessory is behind a bridge.
|
boolean |
isReachable()
TRUE if the accessory is currently reachable, FALSE otherwise.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
manufacturer()
Manufacturer of the accessory.
|
java.lang.String |
model()
Model of the accessory.
|
java.lang.String |
name()
The name of the accessory.
|
static HMAccessory |
new_objc() |
NSArray<? extends HMAccessoryProfile> |
profiles()
Accessory profiles of the receiver.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
HMRoom |
room()
Room containing the accessory.
|
NSArray<? extends HMService> |
services()
Array of HMService objects that represent all the services provided by the accessory.
|
void |
setDelegate_unsafe(HMAccessoryDelegate value)
Delegate object that receives updates on the state of the accessory.
|
void |
setDelegate(HMAccessoryDelegate value)
Delegate object that receives updates on the state of the accessory.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
supportsIdentify()
Indicates if the accessory supports the identify action.
|
NSUUID |
uniqueIdentifier()
A unique identifier for the accessory.
|
NSArray<? extends NSUUID> |
uniqueIdentifiersForBridgedAccessories()
If this accessory is a bridge, this property is an array of NSUUID objects that,
each of which represents the 'uniqueIdentifier' of the accessory vended by the bridge.
|
void |
updateNameCompletionHandler(java.lang.String name,
HMAccessory.Block_updateNameCompletionHandler completion)
This method is used to change the name of the accessory.
|
static long |
version_static() |
accessibilityActivate, 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 HMAccessory alloc()
public static HMAccessory 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 HMAccessory 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 NSArray<? extends HMCameraProfile> cameraProfiles()
An accessory can contain one or more cameras. Each camera is represented as a an HMCameraProfile object. If the accessory does not contain a camera, this property will be nil.
public HMAccessoryCategory category()
public HMAccessoryDelegate delegate()
@Deprecated public NSUUID identifier()
Use uniqueIdentifier to obtain the identifier for this object.
@Deprecated public NSArray<? extends NSUUID> identifiersForBridgedAccessories()
Use uniqueIdentifiersForBridgedAccessories to obtain the identifiers for the bridged accessories.
public void identifyWithCompletionHandler(HMAccessory.Block_identifyWithCompletionHandler completion)
completion - Block that is invoked once the request is processed.
The NSError provides more information on the status of the request, error
will be nil on success.public HMAccessory init()
public boolean isBlocked()
public boolean isBridged()
public boolean isReachable()
public java.lang.String name()
Returns the accessory's name that is associated with HomeKit. The initial value is the name provided by the accessory information service of the accessory.
public HMRoom room()
public NSArray<? extends HMService> services()
public void setDelegate_unsafe(HMAccessoryDelegate value)
public void setDelegate(HMAccessoryDelegate value)
public NSUUID uniqueIdentifier()
public NSArray<? extends NSUUID> uniqueIdentifiersForBridgedAccessories()
An accessory can be standalone, a bridge, or hosted behind a bridge. - A standalone accessory would have its 'bridged' property set to FALSE and its 'uniqueIdentifiersForBridgedAccessories' property set to nil. - An accessory that is a bridge would have its 'bridged' property set to FALSE, but have a non-empty 'uniqueIdentifiersForBridgedAccessories' property. - An accessory behind a bridge would have its 'bridged' property set to TRUE and its 'uniqueIdentifiersForBridgedAccessories' property set to nil.
public void updateNameCompletionHandler(java.lang.String name,
HMAccessory.Block_updateNameCompletionHandler completion)
The new name is stored in HomeKit and not on the accessory.
name - New name for the accessory.completion - Block that is invoked once the request is processed.
The NSError provides more information on the status of the request, error
will be nil on success.public java.lang.String firmwareVersion()
public java.lang.String manufacturer()
public java.lang.String model()
public NSArray<? extends HMAccessoryProfile> profiles()
public boolean supportsIdentify()