Class AndroidAugmentedRealityService
- java.lang.Object
-
- com.gluonhq.attach.augmentedreality.impl.DefaultAugmentedRealityService
-
- com.gluonhq.attach.augmentedreality.impl.AndroidAugmentedRealityService
-
- All Implemented Interfaces:
AugmentedRealityService
public class AndroidAugmentedRealityService extends DefaultAugmentedRealityService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.gluonhq.attach.augmentedreality.AugmentedRealityService
AugmentedRealityService.Availability
-
-
Field Summary
-
Fields inherited from class com.gluonhq.attach.augmentedreality.impl.DefaultAugmentedRealityService
debug
-
-
Constructor Summary
Constructors Constructor Description AndroidAugmentedRealityService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyObjectProperty<AugmentedRealityService.Availability>availabilityProperty()Property that can be used to listen if the AR availability has changedjavafx.beans.property.ReadOnlyBooleanPropertycancelled()Boolean property that can be used to listen if the AR session was cancelledvoiddebugAR(boolean enable)Shows debug informationAugmentedRealityService.AvailabilitygetAvailability()Checks if device supports ARvoidsetModel(ARModel model)Sets the 3D model that is going to be used by the AR session.voidshowAR()Opens AR
-
-
-
Method Detail
-
getAvailability
public AugmentedRealityService.Availability getAvailability()
Description copied from interface:AugmentedRealityServiceChecks if device supports AR- Returns:
- the availability of AR on the device
-
availabilityProperty
public javafx.beans.property.ReadOnlyObjectProperty<AugmentedRealityService.Availability> availabilityProperty()
Description copied from interface:AugmentedRealityServiceProperty that can be used to listen if the AR availability has changed- Returns:
- a
ReadOnlyObjectProperty
-
setModel
public void setModel(ARModel model)
Description copied from interface:AugmentedRealityServiceSets the 3D model that is going to be used by the AR session. The .obj 3D model can be displayed during the AR session when the user taps on the screen after the camera recognizes a feature plane or point The model files have to be placed directly or within a folder under/src/ios/assets/for iOS, while for Android these can be placed under/src/android/assets/or/src/main/resources/assets/.- Parameters:
model- the entity model
-
showAR
public void showAR()
Description copied from interface:AugmentedRealityServiceOpens AR
-
debugAR
public void debugAR(boolean enable)
Description copied from interface:AugmentedRealityServiceShows debug information- Parameters:
enable- set to true to get verbose output
-
cancelled
public javafx.beans.property.ReadOnlyBooleanProperty cancelled()
Description copied from interface:AugmentedRealityServiceBoolean property that can be used to listen if the AR session was cancelled- Returns:
- a
ReadOnlyBooleanProperty
-
-