Package apple.matter

Class MTROTAHeader

  • All Implemented Interfaces:
    NSObject

    public class MTROTAHeader
    extends NSObject
    • Constructor Detail

      • MTROTAHeader

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MTROTAHeader allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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()
      • imageDigest

        @NotNull
        public @NotNull NSData imageDigest()
        A digest of the payload that follows the header. Can be used to verify that the payload is not truncated or corrupted.
      • imageDigestType

        public long imageDigestType()
        The specific algorithm that was used to compute imageDigest.
      • initWithData

        public MTROTAHeader initWithData​(@NotNull
                                         @NotNull NSData data)
        Initialize the MTROTAHeader with the given Matter OTA software image data (as defined in the "Over-the-Air (OTA) Software Update File Format" section of the Matter specification). The provided data is expected to point to a large enough initial chunk of an OTA software image that it includes the entire header (e.g. the entire image). If the passed-in data is too small and does not contain the entire OTA image header, initWithData will return nil and the caller should try creating a new MTROTAHeader object and initializing it with a larger chunk of the image. 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)
      • maxApplicableVersion

        @Nullable
        public @Nullable NSNumber maxApplicableVersion()
        If not nil, specifies the largest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
      • minApplicableVersion

        @Nullable
        public @Nullable NSNumber minApplicableVersion()
        If not nil, specifies the smallest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
      • payloadSize

        @NotNull
        public @NotNull NSNumber payloadSize()
        The size of the actual image payload, which follows the header in the OTA file.
      • productID

        @NotNull
        public @NotNull NSNumber productID()
        The identifier of the specific product the image is meant for. May be 0, if the image might apply to more than one product. This is allowed, but not required, to be matched against the product id received in Query Image.
      • releaseNotesURL

        @Nullable
        public @Nullable java.lang.String releaseNotesURL()
        If not nil a URL pointing to release notes for the software update represented by the image.
      • resolveClassMethod

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

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

        public void setImageDigest​(@NotNull
                                   @NotNull NSData value)
        A digest of the payload that follows the header. Can be used to verify that the payload is not truncated or corrupted.
      • setImageDigestType

        public void setImageDigestType​(long value)
        The specific algorithm that was used to compute imageDigest.
      • setMaxApplicableVersion

        public void setMaxApplicableVersion​(@Nullable
                                            @Nullable NSNumber value)
        If not nil, specifies the largest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
      • setMinApplicableVersion

        public void setMinApplicableVersion​(@Nullable
                                            @Nullable NSNumber value)
        If not nil, specifies the smallest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
      • setPayloadSize

        public void setPayloadSize​(@NotNull
                                   @NotNull NSNumber value)
        The size of the actual image payload, which follows the header in the OTA file.
      • setProductID

        public void setProductID​(@NotNull
                                 @NotNull NSNumber value)
        The identifier of the specific product the image is meant for. May be 0, if the image might apply to more than one product. This is allowed, but not required, to be matched against the product id received in Query Image.
      • setReleaseNotesURL

        public void setReleaseNotesURL​(@Nullable
                                       @Nullable java.lang.String value)
        If not nil a URL pointing to release notes for the software update represented by the image.
      • setSoftwareVersion

        public void setSoftwareVersion​(@NotNull
                                       @NotNull NSNumber value)
        The version of the software contained in this image. This is the version the OTA requestor will be updated to if this image is installed. This can be used to determine whether this image is newer than what the requestor is currently running, by comparing it to the SoftwareVersion in the Query Image command.
      • setSoftwareVersionString

        public void setSoftwareVersionString​(@NotNull
                                             @NotNull java.lang.String value)
        Human-readable version of softwareVersion. This must not be used for deciding which versions are newer or older; use softwareVersion for that.
      • setVendorID

        public void setVendorID​(@NotNull
                                @NotNull NSNumber value)
        The identifier of the vendor whose product this image is meant for. This field can be compared to the vendor id received in the Query Image command to determine whether an image matches. This field may be 0, in which case the image might apply to products from more than one vendor. If it's nonzero, it must match the vendor id in Query Image for this image to be considered.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • softwareVersion

        @NotNull
        public @NotNull NSNumber softwareVersion()
        The version of the software contained in this image. This is the version the OTA requestor will be updated to if this image is installed. This can be used to determine whether this image is newer than what the requestor is currently running, by comparing it to the SoftwareVersion in the Query Image command.
      • softwareVersionString

        @NotNull
        public @NotNull java.lang.String softwareVersionString()
        Human-readable version of softwareVersion. This must not be used for deciding which versions are newer or older; use softwareVersion for that.
      • superclass_static

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

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

        @NotNull
        public @NotNull NSNumber vendorID()
        The identifier of the vendor whose product this image is meant for. This field can be compared to the vendor id received in the Query Image command to determine whether an image matches. This field may be 0, in which case the image might apply to products from more than one vendor. If it's nonzero, it must match the vendor id in Query Image for this image to be considered.
      • version_static

        public static long version_static()