Class NINearbyPeerConfiguration

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class NINearbyPeerConfiguration
    extends NIConfiguration
    An object to describe and configure parameters to be used in a nearby interaction session for mutual relative positional measurements. Devices engaged in a session run with an NINearbyPeerConfiguration are able to continuously generate positional measurements relative to one another. API-Since: 14.0
    • Constructor Detail

      • NINearbyPeerConfiguration

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • initWithPeerToken

        public NINearbyPeerConfiguration initWithPeerToken​(@NotNull
                                                           @NotNull NIDiscoveryToken peerToken)
        Initializes a new configuration with the provided peer token.
        Parameters:
        peerToken - A discovery token received from the peer for this session.
      • 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)
      • peerDiscoveryToken

        @NotNull
        public @NotNull NIDiscoveryToken peerDiscoveryToken()
        The discovery token identifying the peer device for this session configuration.
      • 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()
      • isCameraAssistanceEnabled

        public boolean isCameraAssistanceEnabled()
        Enables camera assistance during the NISession run with this configuration If true, optionally call setARSession: on the NISession before calling runWithConfiguration: If true and setARSession: is not called, an ARSession will automatically be created If true 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 true, optionally call setARSession: on the NISession before calling runWithConfiguration: If true and setARSession: is not called, an ARSession will automatically be created If true 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
      • isExtendedDistanceMeasurementEnabled

        public boolean isExtendedDistanceMeasurementEnabled()
        If both peers are capable, enables extended distance measurement for the NISession that runs with this configuration If true, the NISession will use extended distance measurement capabilities while ranging with a peer that is also capable of extended distance measurement This property is compatible with the cameraAssistanceEnabled property [@note] Check supportsExtendedDistanceMeasurement property from deviceCapabilities properties on NISession and the deviceCapabilities property on the NIDiscoveryToken generated by the peer device to understand mutual capabilities API-Since: 17.0
      • setExtendedDistanceMeasurementEnabled

        public void setExtendedDistanceMeasurementEnabled​(boolean value)
        If both peers are capable, enables extended distance measurement for the NISession that runs with this configuration If true, the NISession will use extended distance measurement capabilities while ranging with a peer that is also capable of extended distance measurement This property is compatible with the cameraAssistanceEnabled property [@note] Check supportsExtendedDistanceMeasurement property from deviceCapabilities properties on NISession and the deviceCapabilities property on the NIDiscoveryToken generated by the peer device to understand mutual capabilities API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.