public class FakeImpressApi implements ImpressApi


Fake implementation of the JNI API for communicating with the Impress Split Engine instance for testing purposes.

Summary

Public constructors

Public methods

@NonNull ListenableFuture<Void>
animateGltfModel(
    int impressNode,
    @Nullable String animationName,
    boolean loop
)
int
int
void
destroyImpressNode(int impressNode)
@NonNull List<Integer>
getImpressNodesForToken(long modelToken)
@NonNull Surface
getSurfaceFromStereoSurface(int panelImpressNode)
int
boolean
impressNodeHasParent(int impressNode)
int
int
instanceGltfModel(long modelToken)
int
instanceGltfModel(long modelToken, boolean enableCollider)
@NonNull ListenableFuture<Long>
void
void
void
releaseGltfModel(long modelToken)
void
setCanvasDimensionsForStereoSurface(
    int panelImpressNode,
    float width,
    float height
)
void
setGltfModelColliderEnabled(int impressNode, boolean enableCollider)
void
setImpressNodeParent(int impressNodeChild, int impressNodeParent)
void
setStereoModeForStereoSurface(
    int panelImpressNode,
    @ImpressApi.StereoMode int mode
)
void
void
stopGltfModelAnimation(int impressNode)

Public constructors

FakeImpressApi

Added in 1.0.0-alpha01
public FakeImpressApi()

Public methods

animateGltfModel

Added in 1.0.0-alpha01
public @NonNull ListenableFuture<VoidanimateGltfModel(
    int impressNode,
    @Nullable String animationName,
    boolean loop
)

createImpressNode

Added in 1.0.0-alpha01
public int createImpressNode()

createStereoSurface

Added in 1.0.0-alpha01
public int createStereoSurface(@ImpressApi.StereoMode int mode)

destroyImpressNode

Added in 1.0.0-alpha01
public void destroyImpressNode(int impressNode)

getImpressNodesForToken

Added in 1.0.0-alpha01
public @NonNull List<IntegergetImpressNodesForToken(long modelToken)

getSurfaceFromStereoSurface

Added in 1.0.0-alpha01
public @NonNull Surface getSurfaceFromStereoSurface(int panelImpressNode)

impressNodeAnimatingSize

Added in 1.0.0-alpha01
public int impressNodeAnimatingSize()

impressNodeHasParent

Added in 1.0.0-alpha01
public boolean impressNodeHasParent(int impressNode)

impressNodeLoopAnimatingSize

Added in 1.0.0-alpha01
public int impressNodeLoopAnimatingSize()

instanceGltfModel

Added in 1.0.0-alpha01
public int instanceGltfModel(long modelToken)

instanceGltfModel

Added in 1.0.0-alpha01
public int instanceGltfModel(long modelToken, boolean enableCollider)

loadGltfModel

Added in 1.0.0-alpha01
public @NonNull ListenableFuture<LongloadGltfModel(@NonNull String name)

onPause

Added in 1.0.0-alpha01
public void onPause()

onResume

Added in 1.0.0-alpha01
public void onResume()

releaseGltfModel

Added in 1.0.0-alpha01
public void releaseGltfModel(long modelToken)

setCanvasDimensionsForStereoSurface

Added in 1.0.0-alpha01
public void setCanvasDimensionsForStereoSurface(
    int panelImpressNode,
    float width,
    float height
)

setGltfModelColliderEnabled

Added in 1.0.0-alpha01
public void setGltfModelColliderEnabled(int impressNode, boolean enableCollider)

setImpressNodeParent

Added in 1.0.0-alpha01
public void setImpressNodeParent(int impressNodeChild, int impressNodeParent)

setStereoModeForStereoSurface

Added in 1.0.0-alpha01
public void setStereoModeForStereoSurface(
    int panelImpressNode,
    @ImpressApi.StereoMode int mode
)

setup

Added in 1.0.0-alpha01
public void setup(@NonNull View view)

stopGltfModelAnimation

Added in 1.0.0-alpha01
public void stopGltfModelAnimation(int impressNode)