public bool isFunctionSupported(FuncType type) //1暂停游戏,2进入用户中心,3进入论坛,4处理应用跳转(旧),5显示浮动工具栏,6隐藏浮动工具栏,7处理应用跳转(新) { #if UNITY_IOS && !UNITY_EDITOR switch (type) { case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_BBS: return(quicksdk_nativeIsFunctionTypeSupported(3)); case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_USER_CENTER: return(quicksdk_nativeIsFunctionTypeSupported(2)); case FuncType.QUICK_SDK_FUNC_TYPE_SHOW_TOOLBAR: return(quicksdk_nativeIsFunctionTypeSupported(5)); case FuncType.QUICK_SDK_FUNC_TYPE_HIDE_TOOLBAR: return(quicksdk_nativeIsFunctionTypeSupported(6)); case FuncType.QUICK_SDK_FUNC_TYPE_PAUSED_GAME: return(quicksdk_nativeIsFunctionTypeSupported(1)); case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_CUSTOMER_CENTER: return(quicksdk_nativeIsFunctionTypeSupported(7)); default: return(false); } #elif UNITY_ANDROID && !UNITY_EDITOR QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance(); return(androidSupport.isFuncSupport(type)); #else return(false); #endif }
public bool isFunctionTypeSupported(FuncType type)//1暂停游戏,2进入用户中心,3进入论坛,4处理应用跳转(旧),5显示浮动工具栏,6隐藏浮动工具栏,7处理应用跳转(新) { #if UNITY_ANDROID && !UNITY_EDITOR QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance(); return(androidSupport.isFuncSupport(type)); #else return(false); #endif }