Exemplo n.º 1
0
        public static K CallStatic <K>(string name, params object[] args)
        {
            Type type   = typeof(K);
            bool isBase = typeof(IHmsBase).IsAssignableFrom(type);

            if (isBase)
            {
                AndroidJavaObject robj = clz.CallStatic <AndroidJavaObject>(name, HmsUtil.TransferParams(args));
                IHmsBase          ret  = (IHmsBase)Activator.CreateInstance(type);
                ret.obj = robj;
                return((K)ret);
            }
            return(clz.CallStatic <K>(name, HmsUtil.TransferParams(args)));
        }
Exemplo n.º 2
0
 public static void CallStatic(string name, params object[] args)
 {
     clz.CallStatic(name, HmsUtil.TransferParams(args));
 }
Exemplo n.º 3
0
 public void Call(string name, params object[] args)
 {
     obj.Call(name, HmsUtil.TransferParams(args));
 }