我要评分
获取效率
正确性
完整性
易理解

Setting the Callback Object for the Instruction Stream Engine

Application Scenario

Set the callback object for the instruction stream engine.

Prerequisites

  • A JNI callback object for the instruction stream engine has been created.
  • The activity has implemented the NativeListener API.

Development Process

  1. Call the callback initialization API.
  2. Set the callback object.

Encoding Instance

public class Activity implements NativeListener {
    private JniCallback jniCallback = new JniCallback();
    protected void onCreate(Bundle savedInstanceState) {
        jniCallback.setNativeCallback();
        jniCallback.setNativeListener(Activity.this);
    }
}