Package apple.matter

Class MTRThreadOperationalDataset

  • All Implemented Interfaces:
    NSObject

    public class MTRThreadOperationalDataset
    extends NSObject
    MTRThreadOperationalDataset allows converting between an "expanded" view of the dataset (with the separate fields) and a single-blob NSData view. The latter can be used to pass Thread network credentials via MTRCommissioningParameters.
    • Constructor Detail

      • MTRThreadOperationalDataset

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

      • PSKc

        @NotNull
        public @NotNull NSData PSKc()
        The Thread PSKc
      • 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)
      • channel

        @Deprecated
        public char channel()
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use channelNumber
      • channelNumber

        @NotNull
        public @NotNull NSNumber channelNumber()
        The Thread network channel. Always an unsigned 16-bit integer. API-Since: 16.4
      • classFallbacksForKeyedArchiver

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

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

        @NotNull
        public @NotNull NSData data()
        Get the underlying data that represents the Thread Active Operational Dataset This can be used for the threadOperationalDataset of MTRCommissioningParameters.
      • debugDescription_static

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

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

        @NotNull
        public @NotNull NSData extendedPANID()
        The Thread Network extendended PAN ID
      • hash_static

        public static long hash_static()
      • initWithData

        public MTRThreadOperationalDataset initWithData​(@NotNull
                                                        @NotNull NSData data)
        Create a Thread Operational Dataset object with a RCP formatted active operational dataset. This initializer will return nil if the input data cannot be parsed correctly
      • initWithNetworkNameExtendedPANIDMasterKeyPSKcChannelPanID

        @Deprecated
        public MTRThreadOperationalDataset initWithNetworkNameExtendedPANIDMasterKeyPSKcChannelPanID​(@NotNull
                                                                                                     @NotNull java.lang.String networkName,
                                                                                                     @NotNull
                                                                                                     @NotNull NSData extendedPANID,
                                                                                                     @NotNull
                                                                                                     @NotNull NSData masterKey,
                                                                                                     @NotNull
                                                                                                     @NotNull NSData PSKc,
                                                                                                     char channel,
                                                                                                     @NotNull
                                                                                                     @NotNull NSData panID)
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use initWithNetworkName:extendedPANID:masterKey:PSKc:channelNumber:panID
      • initWithNetworkNameExtendedPANIDMasterKeyPSKcChannelNumberPanID

        public MTRThreadOperationalDataset initWithNetworkNameExtendedPANIDMasterKeyPSKcChannelNumberPanID​(@NotNull
                                                                                                           @NotNull java.lang.String networkName,
                                                                                                           @NotNull
                                                                                                           @NotNull NSData extendedPANID,
                                                                                                           @NotNull
                                                                                                           @NotNull NSData masterKey,
                                                                                                           @NotNull
                                                                                                           @NotNull NSData PSKc,
                                                                                                           @NotNull
                                                                                                           @NotNull NSNumber channelNumber,
                                                                                                           @NotNull
                                                                                                           @NotNull NSData panID)
        Create a Thread Operational Dataset object with the individual network fields.
        Parameters:
        extendedPANID - Must be MTRSizeThreadExtendedPANID bytes. Otherwise nil will be returned.
        masterKey - Must be MTRSizeThreadMasterKey bytes. Otherwise nil will be returned.
        PSKc - Must be MTRSizeThreadPSKc bytes. Otherwise nil will be returned.
        channelNumber - Must be an unsigned 16-bit value.
        panID - Must be MTRSizeThreadPANID bytes. Otherwise nil will be returned. In particular, it's expected to be a 16-bit unsigned integer stored as 2 bytes in host order. API-Since: 16.4
      • 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)
      • masterKey

        @NotNull
        public @NotNull NSData masterKey()
        The 16 byte Master Key
      • networkName

        @NotNull
        public @NotNull java.lang.String networkName()
        The Thread Network name
      • panID

        @NotNull
        public @NotNull NSData panID()
        A uint16_t stored as 2-bytes in host order representing the Thread PAN ID
      • resolveClassMethod

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

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

        @Deprecated
        public void setChannel​(char value)
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use channelNumber
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()