文档管理中心

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

MODEL_LOADING_ERROR

展开

Field

int MODEL_LOADING_ERROR

模型加载错误状态标识。

另请参阅:Constant-values

UNKNOWN_ERROR

展开

Field

int UNKNOWN_ERROR

未知错误。

另请参阅:Constant-values

Public Methods

onModelLoaded

展开

Method

void onModelLoaded(IModel model)

模型加载后回调该方法。

Parameters
展开

Name

Description

IModel

模型接口。

onModelSelected

展开

Method

void onModelSelected(IModel model)

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

Parameters
展开

Name

Description

IModel

模型接口。

onModelError

展开

Method

void onModelError(int errorCode, String errorMessage)

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

Parameters
展开

Name

Description

errorCode

错误码。

errorMessage

错误信息。

onModelPlacedOnArPlane

展开

Method

void onModelPlacedOnArPlane(IModel model)

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

Parameters
展开

Name

Description

IModel

模型接口。

在 API参考 中进行搜索
请输入您想要搜索的关键词