Class NINearbyAccessoryConfiguration

    • Constructor Detail

      • NINearbyAccessoryConfiguration

        protected NINearbyAccessoryConfiguration​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • accessoryDiscoveryToken

        @NotNull
        public @NotNull NIDiscoveryToken accessoryDiscoveryToken()
        The discovery token identifying the accessory device for this session configuration. NINearbyObject updates for this accessory will contain this discovery token.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithDataError

        public NINearbyAccessoryConfiguration initWithDataError​(@NotNull
                                                                @NotNull NSData data,
                                                                @Nullable
                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Create a new nearby accessory configuration using data received from the accessory.
        Parameters:
        data - Configuration data received from the accessory.
        error - An optional out error parameter that will be populated with an error if the provided data is invalid or unsupported.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class NIConfiguration
      • version_static

        public static long version_static()
      • initWithAccessoryDataBluetoothPeerIdentifierError

        public NINearbyAccessoryConfiguration initWithAccessoryDataBluetoothPeerIdentifierError​(@NotNull
                                                                                                @NotNull NSData accessoryData,
                                                                                                @NotNull
                                                                                                @NotNull NSUUID identifier,
                                                                                                @Nullable
                                                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Create a new nearby accessory configuration for an accessory that is also a paired Bluetooth device The accessory must be a Bluetooth LE peripheral that is paired, actively connected, and implements the Nearby Interaction Service and Accessory Configuration Characteristic. API-Since: 16.0
        Parameters:
        accessoryData - Configuration data received from the accessory
        bluetoothPeerIdentifier - The accessory's Bluetooth identifier
        error - An optional out error parameter that will be populated with an error if the provided inputs are invalid or unsupported.
      • isCameraAssistanceEnabled

        public boolean isCameraAssistanceEnabled()
        Enables camera assistance during the NISession run with this configuration If YES, optionally call -setARSession: on the NISession before calling -runWithConfiguration: If YES and setARSession: is not called, an ARSession will automatically be created If YES and the platform does not support camera assistance, the NISession will generate an error when runWithConfiguration: is called [@note] Check supportsCameraAssistance property in NIDeviceCapability returned from deviceCapabilities properties on NISession API-Since: 16.0
      • setCameraAssistanceEnabled

        public void setCameraAssistanceEnabled​(boolean value)
        Enables camera assistance during the NISession run with this configuration If YES, optionally call -setARSession: on the NISession before calling -runWithConfiguration: If YES and setARSession: is not called, an ARSession will automatically be created If YES and the platform does not support camera assistance, the NISession will generate an error when runWithConfiguration: is called [@note] Check supportsCameraAssistance property in NIDeviceCapability returned from deviceCapabilities properties on NISession API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.