class FakeImpressApi : ImpressApi


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

Summary

Public constructors

Public functions

ListenableFuture<Void!>
animateGltfModel(impressNode: Int, animationName: String?, loop: Boolean)
Int
Int
Unit
destroyImpressNode(impressNode: Int)
(Mutable)List<Int!>
Surface
getSurfaceFromStereoSurface(panelImpressNode: Int)
Int
Boolean
impressNodeHasParent(impressNode: Int)
Int
Int
instanceGltfModel(modelToken: Long)
Int
instanceGltfModel(modelToken: Long, enableCollider: Boolean)
ListenableFuture<Long!>
Unit
Unit
Unit
releaseGltfModel(modelToken: Long)
Unit
setCanvasDimensionsForStereoSurface(
    panelImpressNode: Int,
    width: Float,
    height: Float
)
Unit
setGltfModelColliderEnabled(impressNode: Int, enableCollider: Boolean)
Unit
setImpressNodeParent(impressNodeChild: Int, impressNodeParent: Int)
Unit
setStereoModeForStereoSurface(
    panelImpressNode: Int,
    @ImpressApi.StereoMode mode: Int
)
Unit
setup(view: View)
Unit

Public constructors

FakeImpressApi

Added in 1.0.0-alpha01
FakeImpressApi()

Public functions

animateGltfModel

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

createImpressNode

Added in 1.0.0-alpha01
fun createImpressNode(): Int

createStereoSurface

Added in 1.0.0-alpha01
fun createStereoSurface(@ImpressApi.StereoMode mode: Int): Int

destroyImpressNode

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

getImpressNodesForToken

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

getSurfaceFromStereoSurface

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

impressNodeAnimatingSize

Added in 1.0.0-alpha01
fun impressNodeAnimatingSize(): Int

impressNodeHasParent

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

impressNodeLoopAnimatingSize

Added in 1.0.0-alpha01
fun impressNodeLoopAnimatingSize(): Int

instanceGltfModel

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

instanceGltfModel

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

loadGltfModel

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

onPause

Added in 1.0.0-alpha01
fun onPause(): Unit

onResume

Added in 1.0.0-alpha01
fun onResume(): Unit

releaseGltfModel

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

setCanvasDimensionsForStereoSurface

Added in 1.0.0-alpha01
fun setCanvasDimensionsForStereoSurface(
    panelImpressNode: Int,
    width: Float,
    height: Float
): Unit

setGltfModelColliderEnabled

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

setImpressNodeParent

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

setStereoModeForStereoSurface

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

setup

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

stopGltfModelAnimation

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