DimxPlugin class
The DimensionX SDK as a Flutter plugin: initialise it once, then open the
AR screen or the web screen of an experience by its go.dimx.world url.
The screens are the native SDK's own, presented over the Flutter view;
they hand control back to the app when closed. Every call returns a
future that completes when the native side accepted the request and
fails with a PlatformException naming the reason when it did not.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> - The OS name and version, for a smoke test of the channel.
-
initializeDimxSdk(
Map< String, dynamic> config) → Future<void> - Initialises the native SDK. Call it once, before any screen; a second call is a no-op.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showARScreen(
String url) → Future< void> -
Opens the AR screen of the experience at
url. -
showWebScreen(
String url) → Future< void> -
Opens the web screen of the experience at
url. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited