InappifyBackendCapabilities class
Capability information returned before an SDK backend is selected.
A backend is selected once, during the first configuration attempt, and remains the sole owner of session and persistence state. Mixing operations from different backends in one session is deliberately unsupported because it can split token, customer, and offering state across implementations.
- Annotations
Constructors
-
InappifyBackendCapabilities({required InappifyBackendKind backendKind, required int protocolVersion, required bool ownsSession, required Set<
InappifyOperation> supportedOperations, String? sdkVersion}) -
const
-
InappifyBackendCapabilities.fromMap(Map<
String, dynamic> map) -
Decodes a capability map returned by JavaScript or MethodChannel.
factory
- InappifyBackendCapabilities.legacyDart()
-
Capability response for the current Dart implementation.
factory
-
Capability response used by stubs and unavailable bridges.
factory
Properties
- backendKind → InappifyBackendKind
-
Backend type selected by the adapter.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ownsSession → bool
-
Whether this implementation owns authentication and persistence state.
final
- protocolVersion → int
-
Wire protocol version used by the adapter.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkVersion → String?
-
Optional implementation SDK version for diagnostics.
final
-
supportedOperations
→ Set<
InappifyOperation> -
Operations implemented by this backend.
final
- supportsCompleteLifecycle → bool
-
Whether the backend can safely own an entire Inappify session.
no setter
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
- currentProtocolVersion → const int
- Current Dart/native bridge protocol supported by this package.