EffectFactory.CreateEffect(String) Method

Definition

Instantiate a new effect with the given effect name.

[Android.Runtime.Register("createEffect", "(Ljava/lang/String;)Landroid/media/effect/Effect;", "GetCreateEffect_Ljava_lang_String_Handler")]
public virtual Android.Media.Effect.Effect? CreateEffect (string? effectName);
[<Android.Runtime.Register("createEffect", "(Ljava/lang/String;)Landroid/media/effect/Effect;", "GetCreateEffect_Ljava_lang_String_Handler")>]
abstract member CreateEffect : string -> Android.Media.Effect.Effect
override this.CreateEffect : string -> Android.Media.Effect.Effect

Parameters

effectName
String

The name of the effect to create.

Returns

A new Effect instance.

Attributes

Exceptions

if the effect with the specified name is not supported or not known.

Remarks

Instantiate a new effect with the given effect name.

The effect's parameters will be set to their default values.

Note that the EGL context associated with the current EffectContext need not be made current when creating an effect. This allows the host application to instantiate effects before any EGL context has become current.

Java documentation for android.media.effect.EffectFactory.createEffect(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to