AndroidPlatformViewMode enum
The mode used to host embedded RevenueCat views on Android.
By default, Flutter attempts to use Texture Layer Hybrid Composition, which has the lowest performance overhead. Hybrid Composition is more expensive, but avoids a Flutter engine issue that can stop native view frames from reaching Flutter on some Android 10 devices.
See RevenueCat/purchases-flutter#1954 and flutter/flutter#160854.
Values
- textureLayerHybridComposition → const AndroidPlatformViewMode
-
Attempts to use Texture Layer Hybrid Composition.
This is the default and cheapest hosting mode. Flutter can fall back to Hybrid Composition when Texture Layer Hybrid Composition is unsupported.
- hybridComposition → const AndroidPlatformViewMode
-
Uses Hybrid Composition.
This has more performance overhead, but avoids the Flutter engine issue described in flutter/flutter#160854.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AndroidPlatformViewMode> - A constant List of the values in this enum, in order of their declaration.