目录

IModelListener

Interface Info

public interface IModelListener

模型监听接口,包含模型加载、选择、放置等回调函数。

Public Field Summary

Qualifier and Type

Field and Description

int

MODEL_LOADING_ERROR

模型加载错误状态标识。

int

UNKNOWN_ERROR

未知错误。

Public Method Summary

Qualifier and Type

Method Name and Description

void

onModelError(int errorCode, String errorMessage)

模型错误回调该方法。

void

onModelLoaded(IModel model)

模型加载完成后回调该方法。

void

onModelPlacedOnArPlane(IModel model)

当模型放置在平面的时候回调该方法。

void

onModelSelected(IModel model)

用户点击视图并选择模型时的回调该方法。

Public Fields

[h2]MODEL_LOADING_ERROR

Field

int MODEL_LOADING_ERROR

模型加载错误状态标识。

另请参阅:Constant-values

[h2]UNKNOWN_ERROR

Field

int UNKNOWN_ERROR

未知错误。

另请参阅:Constant-values

Public Methods

[h2]onModelLoaded

Method

void onModelLoaded(IModel model)

模型加载后回调该方法。

Parameters

Name

Description

IModel

模型接口。

[h2]onModelSelected

Method

void onModelSelected(IModel model)

当模型被选中的时候回调该方法。

Parameters

Name

Description

IModel

模型接口。

[h2]onModelError

Method

void onModelError(int errorCode, String errorMessage)

当模型出现错误的时候回调该方法。

Parameters

Name

Description

errorCode

错误码。

errorMessage

错误信息。

[h2]onModelPlacedOnArPlane

Method

void onModelPlacedOnArPlane(IModel model)

当模型放置在平面的时候回调该方法。

Parameters

Name

Description

IModel

模型接口。