Class DDDevice

  • All Implemented Interfaces:
    NSObject

    public class DDDevice
    extends NSObject
    =========================================================================================================================== DeviceDiscoveryExtension device. API-Since: 16.0
    • Constructor Detail

      • DDDevice

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static DDDevice alloc()
      • allocWithZone

        public static DDDevice allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

        @Nullable
        public @Nullable NSUUID bluetoothIdentifier()
        Identifier to communicate with the device via Bluetooth.
      • 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)
      • category

        public long category()
        Category of the device.
      • 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()
      • displayName

        @NotNull
        public @NotNull java.lang.String displayName()
        Name of the device. Should be suitable for displaying to a user.
      • hash_static

        public static long hash_static()
      • identifier

        @NotNull
        public @NotNull java.lang.String identifier()
        Identifier of the device.
      • initWithDisplayNameCategoryProtocolTypeIdentifier

        public DDDevice initWithDisplayNameCategoryProtocolTypeIdentifier​(@NotNull
                                                                          @NotNull java.lang.String displayName,
                                                                          long category,
                                                                          @NotNull
                                                                          @NotNull UTType protocolType,
                                                                          @NotNull
                                                                          @NotNull java.lang.String identifier)
        Initializes a DD device with display name, category, protocol type, and identifier.
      • 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)
      • mediaContentSubtitle

        @Nullable
        public @Nullable java.lang.String mediaContentSubtitle()
        Subtitle of the media content being played. It can be used to display extra information about the content, such as the name of the artist.
      • mediaContentTitle

        @Nullable
        public @Nullable java.lang.String mediaContentTitle()
        Title of the media content being played.
      • mediaPlaybackState

        public long mediaPlaybackState()
        Current state of media playback on this device.
      • networkEndpoint

        @Nullable
        public @Nullable nw_endpoint_t networkEndpoint()
        Endpoint to communicate with the device via networking.
      • new_objc

        public static DDDevice new_objc()
      • protocol

        public long protocol()
        Protocol of the device.
      • protocolType

        @NotNull
        public @NotNull UTType protocolType()
        Uniform Type for the protocol.
      • resolveClassMethod

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

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

        public void setBluetoothIdentifier​(@Nullable
                                           @Nullable NSUUID value)
        Identifier to communicate with the device via Bluetooth.
      • setCategory

        public void setCategory​(long value)
        Category of the device.
      • setDisplayName

        public void setDisplayName​(@NotNull
                                   @NotNull java.lang.String value)
        Name of the device. Should be suitable for displaying to a user.
      • setIdentifier

        public void setIdentifier​(@NotNull
                                  @NotNull java.lang.String value)
        Identifier of the device.
      • setMediaContentSubtitle

        public void setMediaContentSubtitle​(@Nullable
                                            @Nullable java.lang.String value)
        Subtitle of the media content being played. It can be used to display extra information about the content, such as the name of the artist.
      • setMediaContentTitle

        public void setMediaContentTitle​(@Nullable
                                         @Nullable java.lang.String value)
        Title of the media content being played.
      • setMediaPlaybackState

        public void setMediaPlaybackState​(long value)
        Current state of media playback on this device.
      • setNetworkEndpoint

        public void setNetworkEndpoint​(@Nullable
                                       @Nullable nw_endpoint_t value)
        Endpoint to communicate with the device via networking.
      • setProtocol

        public void setProtocol​(long value)
        Protocol of the device.
      • setProtocolType

        public void setProtocolType​(@NotNull
                                    @NotNull UTType value)
        Uniform Type for the protocol.
      • setState

        public void setState​(long value)
        State of the device.
      • setTxtRecordData

        public void setTxtRecordData​(@Nullable
                                     @Nullable NSData value)
        TXT record of the device.
      • setUrl

        public void setUrl​(@NotNull
                           @NotNull NSURL value)
        URL used for SSDP connection. The URL must have a valid hostname, no query parameters, and a maximum size of 100 bytes.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • state

        public long state()
        State of the device.
      • superclass_static

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

        @Nullable
        public @Nullable NSData txtRecordData()
        TXT record of the device.
      • url

        @NotNull
        public @NotNull NSURL url()
        URL used for SSDP connection. The URL must have a valid hostname, no query parameters, and a maximum size of 100 bytes.
      • version_static

        public static long version_static()
      • setSupportsGrouping

        public void setSupportsGrouping​(boolean value)
        Whether the device supports grouping with other devices with the same protocol. API-Since: 17.0
      • supportsGrouping

        public boolean supportsGrouping()
        Whether the device supports grouping with other devices with the same protocol. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.