Class SHSignatureGenerator

  • All Implemented Interfaces:
    NSObject

    public class SHSignatureGenerator
    extends NSObject
    [@c] SHSignatureGenerator provides a way to convert audio data into instances of @c SHSignature API-Since: 15.0
    • Constructor Detail

      • SHSignatureGenerator

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static SHSignatureGenerator allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appendBufferAtTimeError

        public boolean appendBufferAtTimeError​(@NotNull
                                               @NotNull AVAudioPCMBuffer buffer,
                                               @Nullable
                                               @Nullable AVAudioTime time,
                                               @Nullable
                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Add audio to the generator Audio passed to the generator should be contiguous, passing non contiguous data will affect the quality of the @c SHSignature produced. Passing the @c AVAudioTime is not required but recommended, it allows the generator to detect when the audio is not contiguous. This method only accepts PCM audio formats. The following sample rates are recommended but not required: 48000, 44100, 32000, 16000.
        Parameters:
        time - Where in the stream the audio represents
        buffer - The audio data to be appended to the signature
        error - An error if there was an issue appending the buffer
      • 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()
      • 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)
      • signature

        @NotNull
        public @NotNull SHSignature signature()
        Convert the current audio data into a @c SHSignature Signature may be called as many times as needed, each time producing a @c SHSignature from the audio data
      • superclass_static

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

        public static long version_static()
      • generateSignatureFromAssetCompletionHandler

        public static void generateSignatureFromAssetCompletionHandler​(@NotNull
                                                                       @NotNull AVAsset asset,
                                                                       @NotNull
                                                                       @NotNull SHSignatureGenerator.Block_generateSignatureFromAssetCompletionHandler completionHandler)
        Create a `SHSignature` from an @c AVAsset. The asset can be any type of media that has audio tracks. If the asset has multiple tracks, they will be mixed into one @c SHSignature
        Parameters:
        asset - An AVAsset that contains audio you would like to convert to a Signature
        completionHandler - A block called with the created @c SHSignature or nil and a populated error parameter if a signature could not be created. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.