AudioCallbackD class abstract
- Inheritance
-
- Object
- CallbackD<
AudioCallbackFunctionC, AudioCallbackFunctionD> - AudioCallbackD
Constructors
- AudioCallbackD([String? name])
- AudioCallbackD.function(AudioCallbackFunctionD f, {String? name})
-
factory
Properties
- function → AudioCallbackFunctionD
-
The Dart function exposed to the native side.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
A human-readable name for this callback, used in toString and logging.
getter/setter pairinherited
-
nativeFunction
→ Pointer<
NativeFunction< AudioCallbackFunctionC> > -
Returns the native function pointer for this callback.
no setterinherited
-
registry
→ List<
CallbackD< Function, Function> > -
The registry of live callbacks for this callback type.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attach(
) → Pointer< NativeFunction< AudioCallbackFunctionC> > -
Registers this callback and returns its native function pointer.
inherited
-
detach(
[bool keepAlive = false]) → Pointer< NativeFunction< AudioCallbackFunctionC> > -
Removes this callback from registry, optionally disposes it, and
returns its native function pointer.
inherited
-
dispose(
) → void -
Closes the underlying NativeCallable and marks this instance as disposed.
inherited
-
initializer(
) → NativeCallable< AudioCallbackFunctionC> -
Creates and returns the NativeCallable<C> wrapping function.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns name.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
disposeRegistry(
) → void -
Disposes all callbacks in
registryand clears it.override