getTerminal property
int
get
getTerminal
terminal 终端 1 - iOS 2 - 安卓(用户端) 3 - H5 4 - 安卓(主播端) 0 - 未知
Implementation
static int get getTerminal {
if (kIsWeb) {
return 3;
} else if (Platform.isAndroid) {
return 2;
} else if (Platform.isIOS) {
return 1;
}
return 0;
}