R2U class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
deviceSupportsAR ()
→ Future <bool >
Checks whether the user device supports Augmented Reality
This method must be used before showing an AR call to action, such as a button, to a user
getLink (String sku )
→ Future <String >
Returns the 3D URL to display the product on a webview
init ({dynamic customerId = String })
→ Future <void >
Initializes the R2U SDK
This method must be called before the use of other functions
isActive (String sku )
→ Future <bool >
Checks whether the product SKU is active and running on the R2U platform
This method must be used before showing an AR call to action, such as a button, for the specific product
openAR ({dynamic sku = String , dynamic resize = false })
→ Future <void >
Open the Augmented Reality experience using ARKit for iOS and ARCore for Android