Ana içeriğe geç

Android

Platform

ART Labs introduces tailor-made AR-commerce. A specially designed, effortless, 3D-powered boost for eCommerce.

Installation#

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ARTLabs-Engineering.Meshkraft-Android:meshkraft:1.2.0'
}

Usage#

Kotlin#

  1. Add The Following Application class.
class MyApplication:Application() {
override fun onCreate() {
super.onCreate()
Mashkraft.setApiKey("TOKEN_HERE")
}
}
caution

Make sure to replace YOUR_API_KEY with your application token.

AR Session#

Meshkraft.startArSession(context,"PRODUCT_SKU")
MeshKraft.apply {
onFail={message ->
// product fail state
}
onFinish={
// start activity state
}
onLoading={
// activity on loading
}
}

Device Support#

You can check if AR is supported on the device:

Meshkraft.isARSupported(context)

Java#

!coming soon...