/** * Toast 提示 */ public void showToast(string msg) { AndroidJavaObject commonsObject = LoadJavaClassHelper.getCommonsClass(); if (commonsObject != null) { commonsObject.CallStatic("showToast", SingletonHolder.instance_context, msg); } }
/** * 触发复制字符串到系统剪贴板 */ public void copyToClipboarAos(string content) { AndroidJavaObject commonsObject = LoadJavaClassHelper.getCommonsClass(); if (commonsObject != null) { commonsObject.CallStatic("copyToClipboar", SingletonHolder.instance_context, content); } }
/** * print key hash at logcat, search keyword KeyHash will find it */ public void printKeyHash() { AndroidJavaObject commonsObject = LoadJavaClassHelper.getCommonsClass(); if (commonsObject != null) { commonsObject.CallStatic("printKeyHash", SingletonHolder.instance_context); } }