Package apple.phase

Class PHASEAssetRegistry

  • All Implemented Interfaces:
    NSObject

    public class PHASEAssetRegistry
    extends NSObject
    [@interface] PHASEAssetRegistry Asset registry API-Since: 15.0
    • Constructor Detail

      • PHASEAssetRegistry

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PHASEAssetRegistry allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • assetForIdentifier

        @Nullable
        public @Nullable PHASEAsset assetForIdentifier​(@NotNull
                                                       @NotNull java.lang.String identifier)
        assetForIdentifier Finds an asset in the asset registry, given an identifier.
        Parameters:
        identifier - The identifier of this asset
        Returns:
        A PHASEAsset object, or nil if one could not be found.
      • 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()
      • globalMetaParameters

        @NotNull
        public @NotNull NSDictionary<java.lang.String,​? extends PHASEMetaParameter> globalMetaParameters()
        [@property] globalMetaParameters A dictionary of global metaparameters
      • 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)
      • registerGlobalMetaParameterError

        @Nullable
        public @Nullable PHASEGlobalMetaParameterAsset registerGlobalMetaParameterError​(@NotNull
                                                                                        @NotNull PHASEMetaParameterDefinition metaParameterDefinition,
                                                                                        @Nullable
                                                                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        registerGlobalMetaParameter:error Register a global metaparameter with the asset registry. [@note] This function is synchronous and thread-safe. Clients can safely run this function to register multiple global metaparameters from multiple threads, if required.
        Parameters:
        metaParameterDefinition - The metaparameter object to register.
        error - The error object in case of an error.
        Returns:
        A PHASEGlobalMetaParameterAsset object.
      • registerSoundAssetAtURLIdentifierAssetTypeChannelLayoutNormalizationModeError

        @Nullable
        public @Nullable PHASESoundAsset registerSoundAssetAtURLIdentifierAssetTypeChannelLayoutNormalizationModeError​(@NotNull
                                                                                                                       @NotNull NSURL url,
                                                                                                                       @Nullable
                                                                                                                       @Nullable java.lang.String identifier,
                                                                                                                       long assetType,
                                                                                                                       @Nullable
                                                                                                                       @Nullable AVAudioChannelLayout channelLayout,
                                                                                                                       long normalizationMode,
                                                                                                                       @Nullable
                                                                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        registerSoundAssetAtURL:identifier:assetType:channelLayout:normalizationMode:error Register an audio file as a sound asset in the system. [@note] This function is synchronous and thread-safe. Clients can safely run this function to register multiple sound assets from multiple threads, if required.
        Parameters:
        url - The URL of the audio file.
        identifier - An identifier that uniquely represents this sound event asset. Nil generates an automatic identifier.
        assetType - The asset type for this sound asset.
        channelLayout - The audio channel layout for this sound asset. If a valid channel layout definition is read from the file being registered, this will override it. If nil is passed as a value for this property, the file must either be mono or stereo, or already contain a vaild channel layout definition. This channel layout must have the same channel count as the audio file being loaded.
        normalizationMode - The normalization mode.
        error - The error object in case of an error
        Returns:
        A PHASESoundAsset object
      • registerSoundAssetWithDataIdentifierFormatNormalizationModeError

        @Nullable
        public @Nullable PHASESoundAsset registerSoundAssetWithDataIdentifierFormatNormalizationModeError​(@NotNull
                                                                                                          @NotNull NSData data,
                                                                                                          @Nullable
                                                                                                          @Nullable java.lang.String identifier,
                                                                                                          @NotNull
                                                                                                          @NotNull AVAudioFormat format,
                                                                                                          long normalizationMode,
                                                                                                          @Nullable
                                                                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        registerSoundAssetWithData:identifier:format:normalizationMode:error Register audio data as a sound asset in the system. [@note] This function is synchronous and thread-safe. Clients can safely run this function to register multiple sound assets from multiple threads, if required.
        Parameters:
        data - A buffer containing the audio data to register as a sound asset. Audio data must either be a single PCM buffer of interleaved channels or multiple deinterleaved PCM buffers per channel packed back to back.
        identifier - The identifier to assign to this sound asset. Nil generates an automatic identifier.
        format - The AVAudioFormat object that describes the audio data in the buffer.
        normalizationMode - The normalization mode.
        error - The error object in case of an error.
        Returns:
        A PHASESoundAsset object.
      • registerSoundEventAssetWithRootNodeIdentifierError

        @Nullable
        public @Nullable PHASESoundEventNodeAsset registerSoundEventAssetWithRootNodeIdentifierError​(@NotNull
                                                                                                     @NotNull PHASESoundEventNodeDefinition rootNode,
                                                                                                     @Nullable
                                                                                                     @Nullable java.lang.String identifier,
                                                                                                     @Nullable
                                                                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        registerSoundEventAssetWithRootNode:identifier:error Register a sound event asset with the asset registry. [@note] This function is synchronous and thread-safe. Clients can safely run this function to register multiple sound event assets from multiple threads, if required.
        Parameters:
        rootNode - The root node of the sound event asset to register.
        identifier - An identifier that uniquely represents this sound event asset. Nil generates an automatic identifier.
        error - The error object in case of an error
        Returns:
        A PHASESoundEventNodeAsset object
      • 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()
      • unregisterAssetWithIdentifierCompletion

        public void unregisterAssetWithIdentifierCompletion​(@NotNull
                                                            @NotNull java.lang.String identifier,
                                                            @Nullable
                                                            @Nullable PHASEAssetRegistry.Block_unregisterAssetWithIdentifierCompletion handler)
        unregisterAssetWithIdentifier:completion: Unregister and unload an asset.
        Parameters:
        identifier - The identifier of the PHASEAsset object to unregister
        handler - An optional completion block that will be called when the asset has been unregistered. Once you receive this callback, it's safe to deallocate external resources, if applicable.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.