com.gs.mpk.api

MpkApi

All apis of MPK

Supported Products:

All


Detail

Method

method description
public static boolean addStatusListener(String pkgForDebug, IMpkStatusListener callback, int events); Register mpk data change and expansion board click event listener, specify which event to observe.

Params:

pkgForDebug
The caller's pkg name/class name,be used for judging if repeat
callback
call status listener
events
which event {@link com.gs.mpk.context.MpkContext.ListenType}

Return:

boolean true:register success false:register fail

Supported Products:

All

public static boolean removeStatusListener(IMpkStatusListener callback); remove call listener

Params:

callback
The call listener which has been registered.

Return:

boolean true: remove ok;false: remove fail

Supported Products:

All


Member & Constant

Member description
public static final String API The tag name of MpkApi,which is used in
{@link com.gs.common.client.ApiClient.Builder#addApi(String)}

Supported Products:

All