class FakeImpressApi : ImpressApi


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

Summary

Nested types

Test bookkeeping data for a StereoSurfaceEntity

Enum representing the different canvas shapes that can be created.

Test bookkeeping data for a Android Surface

Public constructors

Public functions

ListenableFuture<Void!>
animateGltfModel(impressNode: Int, animationName: String?, loop: Boolean)
Int
Int
Unit
destroyImpressNode(impressNode: Int)
Int
getImpressNodeParent(impressNode: Int)

Returns the parent impress node for the given impress node.

(Mutable)List<Int!>

Gets the impress nodes for glTF models that match the given token.

(Mutable)Map<Int!, FakeImpressApi.StereoSurfaceEntityData!>
Surface
getSurfaceFromStereoSurface(panelImpressNode: Int)
Int

Returns the number of impress nodes that are currently animating.

Boolean
impressNodeHasParent(impressNode: Int)

Returns true if the given impress node has a parent.

Int

Returns the number of impress nodes that looping animations.

Int
instanceGltfModel(modelToken: Long)
Int
instanceGltfModel(modelToken: Long, enableCollider: Boolean)
ListenableFuture<Long!>
Unit
Unit
Unit
releaseGltfModel(modelToken: Long)
Unit
setGltfModelColliderEnabled(impressNode: Int, enableCollider: Boolean)
Unit
setImpressNodeParent(impressNodeChild: Int, impressNodeParent: Int)
Unit
setStereoModeForStereoSurface(
    panelImpressNode: Int,
    @ImpressApi.StereoMode mode: Int
)
Unit
setStereoSurfaceEntityCanvasShapeHemisphere(
    impressNode: Int,
    radius: Float
)

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Unit
setStereoSurfaceEntityCanvasShapeQuad(
    impressNode: Int,
    width: Float,
    height: Float
)

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Unit

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Unit
setup(view: View)
Unit

Public constructors

FakeImpressApi

Added in 1.0.0-alpha02
FakeImpressApi()

Public functions

animateGltfModel

Added in 1.0.0-alpha02
fun animateGltfModel(impressNode: Int, animationName: String?, loop: Boolean): ListenableFuture<Void!>

createImpressNode

Added in 1.0.0-alpha02
fun createImpressNode(): Int

createStereoSurface

Added in 1.0.0-alpha02
fun createStereoSurface(@ImpressApi.StereoMode stereoMode: Int): Int

destroyImpressNode

Added in 1.0.0-alpha02
fun destroyImpressNode(impressNode: Int): Unit

getImpressNodeParent

Added in 1.0.0-alpha02
fun getImpressNodeParent(impressNode: Int): Int

Returns the parent impress node for the given impress node.

getImpressNodesForToken

Added in 1.0.0-alpha02
fun getImpressNodesForToken(modelToken: Long): (Mutable)List<Int!>

Gets the impress nodes for glTF models that match the given token.

getSurfaceFromStereoSurface

Added in 1.0.0-alpha02
fun getSurfaceFromStereoSurface(panelImpressNode: Int): Surface

impressNodeAnimatingSize

Added in 1.0.0-alpha02
fun impressNodeAnimatingSize(): Int

Returns the number of impress nodes that are currently animating.

impressNodeHasParent

Added in 1.0.0-alpha02
fun impressNodeHasParent(impressNode: Int): Boolean

Returns true if the given impress node has a parent.

impressNodeLoopAnimatingSize

Added in 1.0.0-alpha02
fun impressNodeLoopAnimatingSize(): Int

Returns the number of impress nodes that looping animations.

instanceGltfModel

Added in 1.0.0-alpha02
fun instanceGltfModel(modelToken: Long): Int

instanceGltfModel

Added in 1.0.0-alpha02
fun instanceGltfModel(modelToken: Long, enableCollider: Boolean): Int

loadGltfModel

Added in 1.0.0-alpha02
fun loadGltfModel(name: String): ListenableFuture<Long!>

onPause

Added in 1.0.0-alpha02
fun onPause(): Unit

onResume

Added in 1.0.0-alpha02
fun onResume(): Unit

releaseGltfModel

Added in 1.0.0-alpha02
fun releaseGltfModel(modelToken: Long): Unit

setGltfModelColliderEnabled

Added in 1.0.0-alpha02
fun setGltfModelColliderEnabled(impressNode: Int, enableCollider: Boolean): Unit

setImpressNodeParent

Added in 1.0.0-alpha02
fun setImpressNodeParent(impressNodeChild: Int, impressNodeParent: Int): Unit

setStereoModeForStereoSurface

Added in 1.0.0-alpha02
fun setStereoModeForStereoSurface(
    panelImpressNode: Int,
    @ImpressApi.StereoMode mode: Int
): Unit

setStereoSurfaceEntityCanvasShapeHemisphere

Added in 1.0.0-alpha02
fun setStereoSurfaceEntityCanvasShapeHemisphere(
    impressNode: Int,
    radius: Float
): Unit

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Parameters
impressNode: Int

The Impress node which hosts the StereoSurfaceEntity to be updated.

radius: Float

The radius in local spatial units of the hemisphere.

setStereoSurfaceEntityCanvasShapeQuad

Added in 1.0.0-alpha02
fun setStereoSurfaceEntityCanvasShapeQuad(
    impressNode: Int,
    width: Float,
    height: Float
): Unit

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Parameters
impressNode: Int

The Impress node which hosts the StereoSurfaceEntity to be updated.

width: Float

The width in local spatial units to set the quad to.

height: Float

The height in local spatial units to set the quad to.

setStereoSurfaceEntityCanvasShapeSphere

Added in 1.0.0-alpha02
fun setStereoSurfaceEntityCanvasShapeSphere(impressNode: Int, radius: Float): Unit

This method sets the canvas shape of a StereoSurfaceEntity using its Impress ID.

Parameters
impressNode: Int

The Impress node which hosts the StereoSurfaceEntity to be updated.

radius: Float

The radius in local spatial units to set the sphere to.

setup

Added in 1.0.0-alpha02
fun setup(view: View): Unit

stopGltfModelAnimation

Added in 1.0.0-alpha02
fun stopGltfModelAnimation(impressNode: Int): Unit