public class Scene
extends java.lang.Object
implements java.io.Serializable
This class represents the AR SceneForm values. It can be used to show the 3D models on the AR view.
| Modifier and Type | Field and Description |
|---|---|
boolean |
auto
true', insert the pre-defined 3D model automatically on the plane (surface) otherwise 'false'.
|
static java.lang.String |
EXTRA_KEY |
float |
initialScale
Initial scale level of the given 3D model.
|
java.lang.String |
landingPageLink
A valid URL which will be used to show more information about the product.
|
java.lang.String |
logoUrl
Image URL which represents the company logo.
|
float |
maxScale
Maximum scale level of the given 3D model.
|
float |
minScale
Minimum scale level of the given 3D model.
|
java.lang.String |
modelUrl
A valid 3D model URL.
|
java.lang.String |
onboardingImageUrl
Image URL which represents the on-boarding and intro in the AR view.
|
java.lang.String |
onInsertFirstNodeTracking
A tracking URL which will be triggered as soon as we insert the first 3D model into the scene.
|
java.lang.String |
onLandingPageOpenTracking
A tracking URL which will be triggered when user taps on the landing page (more info) button.
|
java.lang.String |
onPermissionDeniedTracking
A tracking URL which will be triggered when required permission(s) is/are granted.
|
java.lang.String |
onPermissionGrantedTracking
A tracking URL which will be triggered when required permission(s) is/are granted.
|
java.lang.String |
onShareClickTracking
A tracking URL which will be triggered when user taps on the share (camera) button.
|
java.lang.String |
onStartTracking
A tracking URL which will be triggered when user opens the AR view.
|
boolean |
shareEnabled
'true', show the camera (share) button, otherwise 'false'.
|
boolean |
singleEntry
'true', only ONE node (3D model) is visible on the scene, otherwise 'false'.
|
java.lang.String |
sourceType
Represents the format of the given 3d Model.
|
| Constructor and Description |
|---|
Scene(java.lang.String json)
Constructs a new instance of scene object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.ar.sceneform.math.Vector3 |
getInitialScale() |
java.lang.String |
getLandingPageLink() |
java.lang.String |
getLogoUrl() |
float |
getMaxScale() |
float |
getMinScale() |
android.net.Uri |
getModelUrl() |
java.lang.String |
getOnboardingImageUrl() |
java.lang.String |
getOnInsertFirstNodeTracking() |
java.lang.String |
getOnLandingPageOpenTracking() |
java.lang.String |
getOnPermissionDeniedTracking() |
java.lang.String |
getOnPermissionGrantedTracking() |
java.lang.String |
getOnShareClickTracking() |
java.lang.String |
getOnStartTracking() |
com.google.ar.sceneform.assets.RenderableSource.SourceType |
getSourceType() |
boolean |
isAuto() |
boolean |
isShareEnabled() |
boolean |
isSingleEntry() |
boolean |
isValid() |
public static java.lang.String EXTRA_KEY
public java.lang.String modelUrl
public java.lang.String sourceType
public java.lang.String logoUrl
Note: we do not show the logo (top|left) on the AR view if the value of this attribute is empty!
public java.lang.String onboardingImageUrl
Note: we do not show the on-boarding dialog on the AR view if the value of this attribute is empty!
public java.lang.String landingPageLink
Note: we MUST hide the info button if the value of this attribute is empty!
public float minScale
Note: we do not use this attribute when the value is smaller or equals to 0!
public float maxScale
Note: we do not use this attribute when the value is 0 or is smaller or equals to min_scale!
public float initialScale
Note: we do not use this attribute when the value is smaller or equals to 0!
public boolean auto
public boolean singleEntry
Note: in single entry mode users can still insert a new node to the surface, and we detach the latest node, if any!
public boolean shareEnabled
public java.lang.String onStartTracking
public java.lang.String onLandingPageOpenTracking
public java.lang.String onShareClickTracking
public java.lang.String onInsertFirstNodeTracking
public java.lang.String onPermissionGrantedTracking
public java.lang.String onPermissionDeniedTracking
public Scene(java.lang.String json)
json - JSON string contains Scene values!public boolean isValid()
true if the current model is valid to process.
false otherwise.public com.google.ar.sceneform.math.Vector3 getInitialScale()
public float getMinScale()
public float getMaxScale()
@Nullable public java.lang.String getLandingPageLink()
@Nullable public java.lang.String getLogoUrl()
@Nullable public java.lang.String getOnboardingImageUrl()
public android.net.Uri getModelUrl()
@Nullable public com.google.ar.sceneform.assets.RenderableSource.SourceType getSourceType()
public boolean isAuto()
public boolean isSingleEntry()
public boolean isShareEnabled()
@Nullable public java.lang.String getOnStartTracking()
@Nullable public java.lang.String getOnInsertFirstNodeTracking()
@Nullable public java.lang.String getOnLandingPageOpenTracking()
@Nullable public java.lang.String getOnShareClickTracking()
@Nullable public java.lang.String getOnPermissionDeniedTracking()
@Nullable public java.lang.String getOnPermissionGrantedTracking()