ARMODWidgetController class

Properties

armodId int
The armodId for this controller
final
channel MethodChannel?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
willbeDisposed bool
getter/setter pair

Methods

cleanCache() Future<void>?
Clean ARExperiences cache in the device. Only AR-MOD in woking!
closeARMODPlayer() Future<bool?>?
Creates a armod player if it's not already created. Please only call this if armod is not ready, or is in unloaded state. Use isLoaded to check. Returns true if armod player was created succesfully.
create() Future<bool?>?
Creates a armod player if it's not already created. Please only call this if armod is not ready, or is in unloaded state. Use isLoaded to check. Returns true if armod player was created succesfully.
dispose() → void
fetchProject(String _projectUid) Future<void>?
Query the ARExperience projecct by project uid.
fetchProjectByImage() Future<void>?
Query the ARExperience projecct by image recognized
inBackground() Future<bool?>?
Helper method to know if armod has been put in background mode (WIP) unstable Returns true if armod player is in background.
initARMOD(String _appConfigure) Future<void>?
Initialize ARMOD SDK with configuration information. This method will call InitARMODModule automatically.
isLoaded() Future<bool?>?
Get the current load state of the armod player Returns true if armod player is loaded.
isPaused() Future<bool?>?
Get the current pause state of the armod player Returns true if armod player is paused.
isReady() Future<bool?>?
Checks to see if armod player is ready to be used Returns true if armod player is ready.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openInNativeProcess() Future<void>?
Sometimes you want to open armod in it's own process and openInNativeProcess does just that. It works for Android and iOS is WIP
pause() Future<void>?
Pause the armod in-game player with this method
postMessage(String gameObject, dynamic methodName, dynamic message) Future<void>?
Post message to armod from flutter. This method takes in a string message. The gameObject must match the name of an actual armod game object in a scene at runtime, and the methodName, must exist in a MonoDevelop class and also exposed as a method. message is an parameter taken by the method
quit() Future<void>?
Quits armod player. Note that this kills the current flutter process, thus quiting the app
resume() Future<void>?
Resume the armod in-game player with this method idf it is in a paused state
toString() String
A string representation of this object.
inherited
tryAcquireInformationListener(String opTag) Future<String>
unload() Future<void>?
Unloads armod player from th current process (Works on Android only for now) For more information please read Unity Docs
unloadAndHideARMOD() Future<void>?
Unload current ARMOD Window

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

init(int id, _ARMODWidgetState armodWidgetState) Future<ARMODWidgetController>
Initialize ARMODWidgetController with id Mainly for internal use when instantiating a ARMODWidgetController passed in ARMODWidget.onARMODCreated callback.