程序包 net_62v.external

类 MetaCore

java.lang.Object
net_62v.external.MetaCore

public final class MetaCore extends Object
Mundo core callback and process initializer
版本:
1.0
作者:
[email protected]
  • 构造器详细资料

    • MetaCore

      public MetaCore()
  • 方法详细资料

    • getHostContext

      public static Context getHostContext()
      Get the application base context (of the host app)
      返回:
      base context
    • attachMetaBase

      public static void attachMetaBase(Context context)
      Can be called inside the attachBaseContext block. MetaCore.attachMetaBase(base)
      参数:
      context - application base context
      另请参阅:
    • registerCoreCallback

      public static void registerCoreCallback(Runnable callback)
      You can render your app ui after our core done all initialize progresses.
      You should call this method to assure that our core done the initialize.
      参数:
      callback - will receive a callback after the init progress done.
    • setProcessLifecycleCallback

      public static void setProcessLifecycleCallback(IMundoProcessCallback callback)
      Set process callback, will callback when the mundo environment prepared and the internal application initialized.
      参数:
      callback - process callback, you can implement the app callback and the environment callback
    • addServiceInterpreter

      public static InvocationHandler addServiceInterpreter(String serviceName, String methodName, InvocationHandler handler)
      Add a service interpreter, you can interpret system service by this method.
      e.g. service name {Context.LOCATION_SERVICE} to interpret the location manager service.
      Method name {getLastLocation}
      (reference to {@nullable Location getLastLocation(String provider, in LastLocationRequest request, String packageName, @nullable String attributionTag);})
      to interpret the getLastLocation method.
      You can modify the service result by this api, and implement your own location spoofing tool help etc.
      参数:
      serviceName - The system service name
      methodName - Method name of the service you selected like getCurrentLocation
      handler - Your method interpreter, you can modify the return value and the params through our callback.
      返回:
      The origin method interpreter, null if no origin method interpreter, if null, you can obtain the origin result by
      calling the Method.invoke function.
      另请参阅: