@extscreen/es-core 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1388 -888
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -200,7 +200,7 @@ var ESDeviceModule$1 = new ESDeviceModule();
|
|
200
200
|
*
|
201
201
|
*/
|
202
202
|
|
203
|
-
const TAG$
|
203
|
+
const TAG$9 = 'ESDeviceManager';
|
204
204
|
|
205
205
|
class ESDeviceManager {
|
206
206
|
|
@@ -259,7 +259,7 @@ class ESDeviceManager {
|
|
259
259
|
ESDeviceModule$1.getDevice().then(
|
260
260
|
(device) => {
|
261
261
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
262
|
-
ESLog.d(TAG$
|
262
|
+
ESLog.d(TAG$9, '#----------init---------->>>>>' + JSON.stringify(device));
|
263
263
|
}
|
264
264
|
this._device = device;
|
265
265
|
|
@@ -312,7 +312,7 @@ class ESDeviceManager {
|
|
312
312
|
}
|
313
313
|
} catch (e) {
|
314
314
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
315
|
-
ESLog.d(TAG$
|
315
|
+
ESLog.d(TAG$9, '#----------init---解析--error----->>>>>' + e);
|
316
316
|
}
|
317
317
|
}
|
318
318
|
resolve(device);
|
@@ -320,7 +320,7 @@ class ESDeviceManager {
|
|
320
320
|
//
|
321
321
|
error => {
|
322
322
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
323
|
-
ESLog.d(TAG$
|
323
|
+
ESLog.d(TAG$9, '#----------init-----error----->>>>>' + error);
|
324
324
|
}
|
325
325
|
resolve(error);
|
326
326
|
}
|
@@ -723,187 +723,1301 @@ var ESToastModule$1 = new ESToastModule();
|
|
723
723
|
/**
|
724
724
|
*
|
725
725
|
*/
|
726
|
-
class
|
726
|
+
class ESModule {
|
727
727
|
|
728
|
-
|
728
|
+
//---------------------------------ESModule--------------------------
|
729
|
+
getESDeviceInfo() {
|
729
730
|
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
730
|
-
'
|
731
|
+
'getDeviceInfo',);
|
731
732
|
}
|
732
733
|
|
733
|
-
|
734
|
-
return Vue.Native.callNativeWithPromise('
|
735
|
-
'
|
734
|
+
getESSDKInfo() {
|
735
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
736
|
+
'getESSDKInfo',);
|
736
737
|
}
|
737
738
|
|
738
|
-
|
739
|
-
return Vue.Native.callNativeWithPromise('
|
740
|
-
'
|
739
|
+
getESSDKVersionCode() {
|
740
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
741
|
+
'getESSDKVersionCode',);
|
741
742
|
}
|
742
743
|
|
743
|
-
|
744
|
-
return Vue.Native.callNativeWithPromise('
|
745
|
-
'
|
744
|
+
getESSDKVersionName() {
|
745
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
746
|
+
'getESSDKVersionName',);
|
746
747
|
}
|
747
748
|
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
/**
|
753
|
-
*
|
754
|
-
*/
|
755
|
-
class ESAppManager {
|
756
|
-
|
757
|
-
init() {
|
758
|
-
return Promise.resolve();
|
749
|
+
getESPackageName() {
|
750
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
751
|
+
'getESPackageName',);
|
759
752
|
}
|
760
753
|
|
761
|
-
|
762
|
-
return
|
754
|
+
getESMiniProgramPath() {
|
755
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
756
|
+
'getESMiniProgramPath',);
|
763
757
|
}
|
764
758
|
|
765
|
-
|
766
|
-
return
|
759
|
+
sendESNativeMapEventTop(eventName, mapParams) {
|
760
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
761
|
+
'sendESNativeMapEventTop', eventName, mapParams);
|
767
762
|
}
|
768
763
|
|
769
|
-
|
770
|
-
return
|
764
|
+
sendESNativeArrayEventTop(eventName, arrayParams) {
|
765
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
766
|
+
'sendESNativeArrayEventTop', eventName, arrayParams);
|
771
767
|
}
|
772
768
|
|
773
|
-
|
774
|
-
return
|
769
|
+
sendESNativeMapEventAll(eventName, mapParams) {
|
770
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
771
|
+
'sendESNativeMapEventAll', eventName, mapParams);
|
775
772
|
}
|
776
|
-
}
|
777
773
|
|
778
|
-
var ESAppManager$1 = new ESAppManager();
|
779
|
-
|
780
|
-
/**
|
781
|
-
*
|
782
|
-
*/
|
783
|
-
class ESAudioModule {
|
784
|
-
//------------------------通话音量------------------------
|
785
|
-
getStreamVoiceCallMaxVolume() {
|
786
|
-
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
787
|
-
'getStreamVoiceCallMaxVolume');
|
788
|
-
}
|
789
774
|
|
790
|
-
|
791
|
-
return Vue.Native.callNativeWithPromise('
|
792
|
-
'
|
775
|
+
sendESNativeArrayEventAll(eventName, arrayParams) {
|
776
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
777
|
+
'sendESNativeArrayEventAll', eventName, arrayParams);
|
793
778
|
}
|
794
779
|
|
795
|
-
|
796
|
-
getStreamSystemMaxVolume() {
|
797
|
-
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
798
|
-
'getStreamSystemMaxVolume');
|
799
|
-
}
|
780
|
+
//---------------------------------EsNativeModule-------------------------
|
800
781
|
|
801
|
-
|
802
|
-
return Vue.Native.callNativeWithPromise('
|
803
|
-
'
|
782
|
+
getSupportSchemes() {
|
783
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
784
|
+
'getSupportSchemes',);
|
804
785
|
}
|
805
786
|
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
'getStreamRingMaxVolume');
|
787
|
+
getVisiblePageSize() {
|
788
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
789
|
+
'getVisiblePageSize',);
|
810
790
|
}
|
811
791
|
|
812
|
-
|
813
|
-
return Vue.Native.callNativeWithPromise('
|
814
|
-
'
|
792
|
+
launchESPageByArgs(args) {
|
793
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
794
|
+
'launchEsPage', {
|
795
|
+
args: args,
|
796
|
+
});
|
815
797
|
}
|
816
798
|
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
799
|
+
launchESPage(params) {
|
800
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
801
|
+
'launchEsPage', {
|
802
|
+
pkg: params.pkg,
|
803
|
+
args: params.args,
|
804
|
+
flags: params.flags,
|
805
|
+
pageTag: params.pageTag,
|
806
|
+
pageLimit: params.pageLimit,
|
807
|
+
backgroundColor: params.backgroundColor,
|
808
|
+
splash: params.splash,
|
809
|
+
transparent: params.transparent,
|
810
|
+
});
|
821
811
|
}
|
822
812
|
|
823
|
-
|
824
|
-
return Vue.Native.callNativeWithPromise('
|
825
|
-
'
|
813
|
+
launchNativeApp(paramsArray) {
|
814
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
815
|
+
'launchNativeApp', paramsArray);
|
826
816
|
}
|
827
817
|
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
'getStreamAlarmMaxVolume');
|
818
|
+
launchNativeAppWithPackage(pkg) {
|
819
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
820
|
+
'launchNativeAppWithPackage', pkg);
|
832
821
|
}
|
833
822
|
|
834
|
-
|
835
|
-
return Vue.Native.callNativeWithPromise('
|
836
|
-
'
|
823
|
+
startService(paramsArray) {
|
824
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
825
|
+
'startService', paramsArray);
|
837
826
|
}
|
838
827
|
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
'getStreamMaxVolume', streamType);
|
828
|
+
finish() {
|
829
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
830
|
+
'finish');
|
843
831
|
}
|
844
832
|
|
845
|
-
|
846
|
-
return Vue.Native.callNativeWithPromise('
|
847
|
-
'
|
833
|
+
finishAll() {
|
834
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
835
|
+
'finishAll');
|
848
836
|
}
|
849
837
|
|
850
|
-
|
851
|
-
adjustStreamVolume(streamType, adjust, flags) {
|
852
|
-
Vue.Native.callNative('AndroidAudioModule',
|
853
|
-
'adjustStreamVolume', [streamType, adjust, flags]);
|
854
|
-
}
|
838
|
+
//----------------------------组件和模块注册相关--------------------------------------------
|
855
839
|
|
856
|
-
|
857
|
-
Vue.Native.
|
858
|
-
'
|
840
|
+
isModuleRegistered(className) {
|
841
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
842
|
+
'isModuleRegistered', className);
|
859
843
|
}
|
860
844
|
|
861
|
-
|
862
|
-
Vue.Native.
|
863
|
-
'
|
845
|
+
isComponentRegistered(className) {
|
846
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
847
|
+
'isComponentRegistered', className);
|
864
848
|
}
|
865
849
|
}
|
866
850
|
|
867
|
-
var
|
851
|
+
var ESModule$1 = new ESModule();
|
852
|
+
|
853
|
+
const ES_SDK_VERSION_20 = -1;
|
854
|
+
const ES_SDK_VERSION_21 = 2.1;
|
855
|
+
const ES_SDK_VERSION_22 = 2.2;
|
856
|
+
const ES_SDK_VERSION_22_1 = 2.21;
|
857
|
+
const ES_SDK_VERSION_23 = 2.3;
|
858
|
+
const ES_SDK_VERSION_24 = 2.4;
|
859
|
+
const ES_SDK_VERSION_25 = 2.5;
|
860
|
+
const ES_SDK_VERSION_26 = 2.6;
|
861
|
+
const ES_SDK_VERSION_27 = 2.7;
|
862
|
+
const ES_SDK_VERSION_28 = 2.8;
|
863
|
+
const ES_SDK_VERSION_29 = 2.9;
|
864
|
+
const ES_SDK_VERSION_30 = 3.0;
|
868
865
|
|
869
866
|
/**
|
870
867
|
*
|
871
868
|
*/
|
872
869
|
|
873
|
-
|
874
|
-
|
875
|
-
class ESAudioManager {
|
870
|
+
class ESManager {
|
876
871
|
|
877
|
-
|
878
|
-
|
872
|
+
_esSdkCid = null;
|
873
|
+
_esSdkVersionCode = null;
|
874
|
+
_esSdkVersionName = null;
|
875
|
+
_esSdkPackageName = null;
|
876
|
+
_esMiniProgramPath = null;
|
877
|
+
_esKitVersionCode = -1;
|
878
|
+
_esSdkSchemes = [];
|
879
|
+
_runtimePath = null;
|
879
880
|
|
880
|
-
|
881
|
-
_systemVolume = -1;
|
881
|
+
_esSdkInfo = null;
|
882
882
|
|
883
|
-
_musicMaxVolume = -1;
|
884
|
-
_musicVolume = -1;
|
885
883
|
|
886
|
-
|
887
|
-
|
884
|
+
init() {
|
885
|
+
return Promise.resolve()
|
886
|
+
.then(() => this.initESInfoPromise())
|
887
|
+
}
|
888
888
|
|
889
|
-
|
890
|
-
|
889
|
+
initESInfoPromise() {
|
890
|
+
return ESModule$1.getESSDKInfo()
|
891
|
+
.then((result) => {
|
892
|
+
this._esSdkInfo = result;
|
893
|
+
if (result) {
|
894
|
+
this._esSdkVersionCode = result.versionCode;
|
895
|
+
this._esSdkVersionName = result.versionName;
|
896
|
+
this._esSdkPackageName = result.packageName;
|
897
|
+
this._esMiniProgramPath = result.miniProgramPath;
|
898
|
+
this._esSdkSchemes = result.schemes;
|
899
|
+
if (result.eskit_ver_code) {
|
900
|
+
this._esKitVersionCode = result.eskit_ver_code;
|
901
|
+
}
|
902
|
+
//
|
903
|
+
this._runtimePath = result.runtimePath;
|
904
|
+
}
|
905
|
+
return ESModule$1.getESDeviceInfo();
|
906
|
+
}
|
907
|
+
)
|
908
|
+
//获取cid
|
909
|
+
.then((result) => {
|
910
|
+
if (result) {
|
911
|
+
this._esSdkCid = result.cid;
|
912
|
+
}
|
913
|
+
return Promise.resolve();
|
914
|
+
}
|
915
|
+
);
|
916
|
+
}
|
891
917
|
|
892
|
-
|
893
|
-
return this.
|
918
|
+
getESSDKInfo() {
|
919
|
+
return this._esSdkInfo;
|
894
920
|
}
|
895
921
|
|
896
|
-
|
897
|
-
return
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
922
|
+
getESSDKCid() {
|
923
|
+
return this._esSdkCid;
|
924
|
+
}
|
925
|
+
|
926
|
+
getESSDKVersionCode() {
|
927
|
+
return this._esKitVersionCode;
|
928
|
+
}
|
929
|
+
|
930
|
+
getESSDKVersionName() {
|
931
|
+
return this._esSdkVersionName;
|
932
|
+
}
|
933
|
+
|
934
|
+
getESPackageName() {
|
935
|
+
return this._esSdkPackageName;
|
936
|
+
}
|
937
|
+
|
938
|
+
getESVersionCode() {
|
939
|
+
return this._esSdkVersionCode;
|
940
|
+
}
|
941
|
+
|
942
|
+
getESVersionName() {
|
943
|
+
return this._esSdkVersionName;
|
944
|
+
}
|
945
|
+
|
946
|
+
/**
|
947
|
+
* 获取EsApp路径, 用于文件存储管理
|
948
|
+
* @return
|
949
|
+
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
950
|
+
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
951
|
+
*/
|
952
|
+
getESMiniProgramPath() {
|
953
|
+
return this._esMiniProgramPath;
|
954
|
+
}
|
955
|
+
|
956
|
+
/**
|
957
|
+
* 获取EsApp路径, 用于文件存储管理
|
958
|
+
* @return
|
959
|
+
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
960
|
+
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
961
|
+
*/
|
962
|
+
getESAppPath() {
|
963
|
+
return this._esMiniProgramPath;
|
964
|
+
}
|
965
|
+
|
966
|
+
/**
|
967
|
+
* 获取EsApp运行时路径, 通常用于获取代码包里的assets
|
968
|
+
* @return
|
969
|
+
* /data/data/APK包名/app_rpk/apps/小程序包名/版本号/android
|
970
|
+
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/2.2.2203/android
|
971
|
+
*/
|
972
|
+
getESAppRuntimePath() {
|
973
|
+
if (this.getESSDKVersionCode() >= ES_SDK_VERSION_22) {
|
974
|
+
return this._runtimePath;
|
975
|
+
}
|
976
|
+
//
|
977
|
+
else {
|
978
|
+
return this._esMiniProgramPath;
|
979
|
+
}
|
980
|
+
}
|
981
|
+
|
982
|
+
getESSDKSupportSchemes() {
|
983
|
+
return this._esSdkSchemes;
|
984
|
+
}
|
985
|
+
|
986
|
+
//----------------------------组件和模块注册相关--------------------------------------------
|
987
|
+
isModuleRegistered(className) {
|
988
|
+
return ESModule$1.isModuleRegistered(className);
|
989
|
+
}
|
990
|
+
|
991
|
+
isComponentRegistered(className) {
|
992
|
+
return ESModule$1.isComponentRegistered(className);
|
993
|
+
}
|
994
|
+
}
|
995
|
+
|
996
|
+
var ESManager$1 = new ESManager();
|
997
|
+
|
998
|
+
/**
|
999
|
+
*
|
1000
|
+
*/
|
1001
|
+
|
1002
|
+
|
1003
|
+
class ESLaunchManager {
|
1004
|
+
|
1005
|
+
_ESRouter = null;
|
1006
|
+
_ESRouterEnabled = true;
|
1007
|
+
_ESPageRouterViewSupported = false;
|
1008
|
+
_launchLimit = 10;
|
1009
|
+
|
1010
|
+
_routeListener = null;
|
1011
|
+
|
1012
|
+
_routeListenerList = [];
|
1013
|
+
|
1014
|
+
init(router) {
|
1015
|
+
try {
|
1016
|
+
this._ESRouter = router;
|
1017
|
+
this._ESPageRouterViewSupported = this.isESPageRouterViewSupported();
|
1018
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1019
|
+
ESLog.d('ESRouter', '#------init--------->>' + '\n' +
|
1020
|
+
'_ESPageRouterViewSupported: ' + this._ESPageRouterViewSupported + '\n' +
|
1021
|
+
'_ESRouter: ' + this._ESRouter
|
1022
|
+
);
|
1023
|
+
}
|
1024
|
+
} catch (e) {
|
1025
|
+
}
|
1026
|
+
//
|
1027
|
+
this._setESPageRouterViewSupported(this._ESPageRouterViewSupported);
|
1028
|
+
return Promise.resolve();
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
//----------------------ESPageRouterView--------------------------
|
1032
|
+
_setESPageRouterViewSupported(enabled) {
|
1033
|
+
this._ESPageRouterViewSupported = enabled;
|
1034
|
+
try {
|
1035
|
+
if (this._ESRouter) {
|
1036
|
+
this._ESRouter.setESPageRouterViewSupported(enabled);
|
1037
|
+
}
|
1038
|
+
} catch (e) {
|
1039
|
+
}
|
1040
|
+
}
|
1041
|
+
|
1042
|
+
isESPageRouterViewSupported() {
|
1043
|
+
return ESManager$1.getESSDKVersionCode() >= ES_SDK_VERSION_21;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
isESRouterSupported() {
|
1047
|
+
return this.isESPageRouterViewSupported();
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
//---------------------------------------------------------
|
1051
|
+
|
1052
|
+
isESRouterEnabled() {
|
1053
|
+
return this._ESRouterEnabled;
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
setESRouterEnabled(enabled) {
|
1057
|
+
this._ESRouterEnabled = enabled;
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
setLaunchLimit(limit) {
|
1061
|
+
this._launchLimit = limit;
|
1062
|
+
if (this._ESRouter) {
|
1063
|
+
try {
|
1064
|
+
this._ESRouter.setRouteLimit(limit);
|
1065
|
+
} catch (e) {
|
1066
|
+
}
|
1067
|
+
}
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
//-----------------------------------------------------------
|
1071
|
+
|
1072
|
+
addRouteListener(routeListener) {
|
1073
|
+
if (this._routeListenerList && this._routeListenerList.length > 0) {
|
1074
|
+
for (let i = 0; i < this._routeListenerList.length; i++) {
|
1075
|
+
let l = this._routeListenerList[i];
|
1076
|
+
if (l === routeListener) {
|
1077
|
+
return;
|
1078
|
+
}
|
1079
|
+
}
|
1080
|
+
}
|
1081
|
+
this._routeListenerList.push(routeListener);
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
removeRouteListener(routeListener) {
|
1085
|
+
if (this._routeListenerList && this._routeListenerList.length > 0) {
|
1086
|
+
let index = -1;
|
1087
|
+
for (let i = 0; i < this._routeListenerList.length; i++) {
|
1088
|
+
let l = this._routeListenerList[i];
|
1089
|
+
if (l === routeListener) {
|
1090
|
+
index = i;
|
1091
|
+
}
|
1092
|
+
}
|
1093
|
+
if (index > -1) {
|
1094
|
+
this._routeListenerList.splice(index, 1);
|
1095
|
+
}
|
1096
|
+
}
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
_notifyRouteListenerList(url, params) {
|
1100
|
+
try {
|
1101
|
+
if (this._routeListenerList && this._routeListenerList.length > 0) {
|
1102
|
+
for (let i = 0; i < this._routeListenerList.length; i++) {
|
1103
|
+
let listener = this._routeListenerList[i];
|
1104
|
+
if (listener && this.isFunction(listener)) {
|
1105
|
+
try {
|
1106
|
+
listener(url, params);
|
1107
|
+
} catch (e) {
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
} catch (e) {
|
1113
|
+
}
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
//-----------------------------------------------------------
|
1117
|
+
setRouteListener(routeListener) {
|
1118
|
+
this._routeListener = routeListener;
|
1119
|
+
}
|
1120
|
+
|
1121
|
+
_notifyListeners(url, params) {
|
1122
|
+
//1.
|
1123
|
+
try {
|
1124
|
+
if (this._routeListener && this.isFunction(this._routeListener)) {
|
1125
|
+
this._routeListener(url, params);
|
1126
|
+
}
|
1127
|
+
} catch (e) {
|
1128
|
+
|
1129
|
+
}
|
1130
|
+
//2.
|
1131
|
+
try {
|
1132
|
+
this._notifyRouteListenerList(url, params);
|
1133
|
+
} catch (e) {
|
1134
|
+
}
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
isFunction(func) {
|
1138
|
+
return Object.prototype.toString.call(func) === '[object Function]';
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
//-----------------------------------------------------------
|
1142
|
+
launchNativeApp(paramsArray) {
|
1143
|
+
return ESModule$1.launchNativeApp(paramsArray);
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
launchNativePage(intent) {
|
1147
|
+
return ESModule$1.launchESPage({
|
1148
|
+
args: {
|
1149
|
+
url: intent.url,
|
1150
|
+
params: intent.params
|
1151
|
+
},
|
1152
|
+
flags: intent.flags,
|
1153
|
+
pageTag: intent.pageTag,
|
1154
|
+
pageLimit: intent.pageLimit,
|
1155
|
+
backgroundColor: intent.backgroundColor,
|
1156
|
+
//
|
1157
|
+
pkg: intent.packageName,
|
1158
|
+
splash: intent.splash,
|
1159
|
+
transparent: intent.transparent
|
1160
|
+
});
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
launchESPage(intent) {
|
1164
|
+
let url = intent.url;
|
1165
|
+
let params = intent.params;
|
1166
|
+
|
1167
|
+
if (this.isESRouterEnabled()
|
1168
|
+
&& this.isESRouterSupported()
|
1169
|
+
&& this._ESRouter) {
|
1170
|
+
//
|
1171
|
+
this._notifyListeners(url, params);
|
1172
|
+
//
|
1173
|
+
this._ESRouter.push({
|
1174
|
+
name: url,
|
1175
|
+
params: params,
|
1176
|
+
});
|
1177
|
+
}
|
1178
|
+
//
|
1179
|
+
else {
|
1180
|
+
//
|
1181
|
+
this._notifyListeners(url, params);
|
1182
|
+
//
|
1183
|
+
this.launchNativePage(intent);
|
1184
|
+
}
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
launchAfterFinishESPage(intent) {
|
1188
|
+
let url = intent.url;
|
1189
|
+
let params = intent.params;
|
1190
|
+
|
1191
|
+
if (this.isESRouterEnabled()
|
1192
|
+
&& this.isESRouterSupported()
|
1193
|
+
&& this._ESRouter) {
|
1194
|
+
this._ESRouter.back();
|
1195
|
+
//
|
1196
|
+
this._notifyListeners(url, params);
|
1197
|
+
|
1198
|
+
this._ESRouter.push({
|
1199
|
+
name: intent.url,
|
1200
|
+
params: intent.params,
|
1201
|
+
});
|
1202
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1203
|
+
ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
//
|
1207
|
+
else {
|
1208
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1209
|
+
ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
|
1210
|
+
}
|
1211
|
+
//1.finish
|
1212
|
+
ESModule$1.finish();
|
1213
|
+
//
|
1214
|
+
this._notifyListeners(url, params);
|
1215
|
+
|
1216
|
+
//2.launch
|
1217
|
+
this.launchNativePage(intent);
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
|
1221
|
+
finishAllESPage() {
|
1222
|
+
ESModule$1.finishAll();
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
finishNativePage() {
|
1226
|
+
ESModule$1.finish();
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
finishESPage() {
|
1230
|
+
if (this.isESRouterEnabled()
|
1231
|
+
&& this.isESRouterSupported()
|
1232
|
+
&& this._ESRouter
|
1233
|
+
&& this._ESRouter.back()) {
|
1234
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1235
|
+
ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
|
1236
|
+
}
|
1237
|
+
//
|
1238
|
+
}
|
1239
|
+
//
|
1240
|
+
else {
|
1241
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1242
|
+
ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
|
1243
|
+
}
|
1244
|
+
ESModule$1.finish();
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
/**
|
1249
|
+
* 获取当前页面的路由
|
1250
|
+
*/
|
1251
|
+
getCurrentESPage() {
|
1252
|
+
if (this._ESRouter && this._ESRouter.currentRoute) {
|
1253
|
+
return {
|
1254
|
+
url: this._ESRouter.currentRoute.name,
|
1255
|
+
params: this._ESRouter.currentRoute.params,
|
1256
|
+
};
|
1257
|
+
}
|
1258
|
+
return null;
|
1259
|
+
}
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
var ESLaunchManager$1 = new ESLaunchManager();
|
1263
|
+
|
1264
|
+
/**
|
1265
|
+
*
|
1266
|
+
*/
|
1267
|
+
class ESSharedDataModule {
|
1268
|
+
|
1269
|
+
getBoolean(params, key, defValue) {
|
1270
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getBoolean',
|
1271
|
+
params, key, defValue);
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
putBoolean(params, key, defValue, mode) {
|
1275
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putBoolean',
|
1276
|
+
params, key, defValue, mode);
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
//
|
1280
|
+
getInt(params, key, defValue) {
|
1281
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getInt',
|
1282
|
+
params, key, defValue);
|
1283
|
+
}
|
1284
|
+
|
1285
|
+
putInt(params, key, defValue, mode) {
|
1286
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putInt',
|
1287
|
+
params, key, defValue, mode);
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
//
|
1291
|
+
getLong(params, key, defValue) {
|
1292
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getLong',
|
1293
|
+
params, key, defValue);
|
1294
|
+
}
|
1295
|
+
|
1296
|
+
putLong(params, key, defValue, mode) {
|
1297
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putLong',
|
1298
|
+
params, key, defValue, mode);
|
1299
|
+
}
|
1300
|
+
|
1301
|
+
//
|
1302
|
+
getString(params, key, defValue) {
|
1303
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getString',
|
1304
|
+
params, key, defValue);
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
putString(params, key, defValue, mode) {
|
1308
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putString',
|
1309
|
+
params, key, defValue, mode);
|
1310
|
+
}
|
1311
|
+
|
1312
|
+
//
|
1313
|
+
getArray(params, key, defValue) {
|
1314
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getArray',
|
1315
|
+
params, key, defValue);
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
putArray(params, key, defValue, mode) {
|
1319
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putArray',
|
1320
|
+
params, key, defValue, mode);
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
//
|
1324
|
+
getMap(params, key, defValue) {
|
1325
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'getMap',
|
1326
|
+
params, key, defValue);
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
putMap(params, key, defValue, mode) {
|
1330
|
+
return Vue.Native.callNativeWithPromise('ESGroupDataModule', 'putMap',
|
1331
|
+
params, key, defValue, mode);
|
1332
|
+
}
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
var ESSharedDataModule$1 = new ESSharedDataModule();
|
1336
|
+
|
1337
|
+
//
|
1338
|
+
const ES_SHARED_DATA_MODE_PRIVATE = 0;
|
1339
|
+
const ES_SHARED_DATA_MODE_WORLD_READABLE = 1;
|
1340
|
+
const ES_SHARED_DATA_MODE_WORLD_WRITEABLE = 2;
|
1341
|
+
|
1342
|
+
//
|
1343
|
+
const ES_SHARED_DATA_TYPE_INT = 0;
|
1344
|
+
const ES_SHARED_DATA_TYPE_LONG = 1;
|
1345
|
+
const ES_SHARED_DATA_TYPE_FLOAT = 2;
|
1346
|
+
const ES_SHARED_DATA_TYPE_STRING = 3;
|
1347
|
+
const ES_SHARED_DATA_TYPE_BOOLEAN = 4;
|
1348
|
+
const ES_SHARED_DATA_TYPE_MAP = 5;
|
1349
|
+
const ES_SHARED_DATA_TYPE_ARRAY = 6;
|
1350
|
+
|
1351
|
+
/**
|
1352
|
+
*
|
1353
|
+
*/
|
1354
|
+
|
1355
|
+
class ESSharedPreferencesModule {
|
1356
|
+
|
1357
|
+
initSharedPreferences(name) {
|
1358
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1359
|
+
'initSharedPreferences', name);
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
initESSharedPreferences(name) {
|
1363
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1364
|
+
'initESSharedPreferences', name);
|
1365
|
+
}
|
1366
|
+
|
1367
|
+
//----------------------------------------------------
|
1368
|
+
getBoolean(key, defValue) {
|
1369
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1370
|
+
'getBoolean', key, defValue);
|
1371
|
+
}
|
1372
|
+
|
1373
|
+
putBoolean(key, value) {
|
1374
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1375
|
+
'putBoolean', key, value);
|
1376
|
+
}
|
1377
|
+
|
1378
|
+
//----------------------------------------------------
|
1379
|
+
|
1380
|
+
getInt(key, defValue) {
|
1381
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1382
|
+
'getInt', key, defValue);
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
putInt(key, value) {
|
1386
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1387
|
+
'putInt', key, value);
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
//----------------------------------------------------
|
1391
|
+
|
1392
|
+
getLong(key, defValue) {
|
1393
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1394
|
+
'getLong', key, defValue);
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
putLong(key, value) {
|
1398
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1399
|
+
'putLong', key, value);
|
1400
|
+
}
|
1401
|
+
|
1402
|
+
//----------------------------------------------------
|
1403
|
+
getString(key, defValue) {
|
1404
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1405
|
+
'getString', key, defValue);
|
1406
|
+
}
|
1407
|
+
|
1408
|
+
putString(key, value) {
|
1409
|
+
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1410
|
+
'putString', key, value);
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
//----------------------------------------------------
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
var ESSharedPreferencesModule$1 = new ESSharedPreferencesModule();
|
1417
|
+
|
1418
|
+
/**
|
1419
|
+
*
|
1420
|
+
*/
|
1421
|
+
|
1422
|
+
const TAG$8 = 'ESSPDataModule';
|
1423
|
+
|
1424
|
+
class ESSPDataModule {
|
1425
|
+
|
1426
|
+
//
|
1427
|
+
_sharedDataFilePostfix = '_group_data';
|
1428
|
+
|
1429
|
+
getBoolean(params, key, defValue) {
|
1430
|
+
return this._getSharedData(params, key, defValue);
|
1431
|
+
}
|
1432
|
+
|
1433
|
+
putBoolean(params, key, value, mode) {
|
1434
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_BOOLEAN, key, value, mode);
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
//
|
1438
|
+
getInt(params, key, defValue) {
|
1439
|
+
return this._getSharedData(params, key, defValue);
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
putInt(params, key, value, mode) {
|
1443
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_INT, key, value, mode);
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
//
|
1447
|
+
getLong(params, key, defValue) {
|
1448
|
+
return this._getSharedData(params, key, defValue);
|
1449
|
+
}
|
1450
|
+
|
1451
|
+
putLong(params, key, value, mode) {
|
1452
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_LONG, key, value, mode);
|
1453
|
+
}
|
1454
|
+
|
1455
|
+
//
|
1456
|
+
getString(params, key, defValue) {
|
1457
|
+
return this._getSharedData(params, key, defValue);
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
putString(params, key, value, mode) {
|
1461
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_STRING, key, value, mode);
|
1462
|
+
}
|
1463
|
+
|
1464
|
+
//
|
1465
|
+
getArray(params, key, defValue) {
|
1466
|
+
return this._getSharedData(params, key, defValue);
|
1467
|
+
}
|
1468
|
+
|
1469
|
+
putArray(params, key, value, mode) {
|
1470
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_ARRAY, key, value, mode);
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
//
|
1474
|
+
getMap(params, key, defValue) {
|
1475
|
+
return this._getSharedData(params, key, defValue);
|
1476
|
+
}
|
1477
|
+
|
1478
|
+
putMap(params, key, value, mode) {
|
1479
|
+
return this._putSharedData(params, ES_SHARED_DATA_TYPE_MAP, key, value, mode);
|
1480
|
+
}
|
1481
|
+
|
1482
|
+
//---------------------------------------------------
|
1483
|
+
_getSharedData(params, key, defValue) {
|
1484
|
+
if (!params || !params.packageName) {
|
1485
|
+
return Promise.resolve(defValue);
|
1486
|
+
}
|
1487
|
+
let fileName = params.packageName + this._sharedDataFilePostfix;
|
1488
|
+
return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
|
1489
|
+
.then(() => ESSharedPreferencesModule$1.getString(key, null))
|
1490
|
+
.then((result) => {
|
1491
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1492
|
+
ESLog.d(TAG$8, "------_getSharedData---sp-->>>"
|
1493
|
+
+ "result:" + result + "--->>>"
|
1494
|
+
);
|
1495
|
+
}
|
1496
|
+
if (result) {
|
1497
|
+
let shareData = JSON.parse(result);
|
1498
|
+
if (shareData) {
|
1499
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1500
|
+
ESLog.d(TAG$8, "------_getSharedData--shareData--->>>");
|
1501
|
+
}
|
1502
|
+
return Promise.resolve(shareData.data);
|
1503
|
+
}
|
1504
|
+
}
|
1505
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1506
|
+
ESLog.d(TAG$8, "------_getSharedData----->>>"
|
1507
|
+
+ "defValue:" + defValue + "--->>>"
|
1508
|
+
);
|
1509
|
+
}
|
1510
|
+
return Promise.resolve(defValue);
|
1511
|
+
}
|
1512
|
+
);
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
_putSharedData(params, type, key, value, mode) {
|
1516
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1517
|
+
ESLog.d(TAG$8, "------_putSharedData--start--->>>"
|
1518
|
+
+ "params:" + params + "--->>>"
|
1519
|
+
+ "type:" + type + "--->>>"
|
1520
|
+
+ "key:" + key + "--->>>"
|
1521
|
+
+ "value:" + value + "--->>>"
|
1522
|
+
+ "mode:" + mode + "--->>>"
|
1523
|
+
);
|
1524
|
+
}
|
1525
|
+
if (!params || !params.packageName) {
|
1526
|
+
return Promise.resolve(false);
|
1527
|
+
}
|
1528
|
+
|
1529
|
+
let selfPackageName = ESManager$1.getESPackageName();
|
1530
|
+
let fileName = params.packageName + this._sharedDataFilePostfix;
|
1531
|
+
|
1532
|
+
//----------------------self------------------------------
|
1533
|
+
if (selfPackageName === params.packageName) {
|
1534
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1535
|
+
ESLog.d(TAG$8, "----SELF-------_pushSPSharedData----->>>");
|
1536
|
+
}
|
1537
|
+
return this._pushSPSharedData(fileName, key, {
|
1538
|
+
mode: mode,
|
1539
|
+
type: type,
|
1540
|
+
secretKey: params.secretKey,
|
1541
|
+
data: value,
|
1542
|
+
});
|
1543
|
+
}
|
1544
|
+
//-----------------------other-----------------------------
|
1545
|
+
return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
|
1546
|
+
.then(() => ESSharedPreferencesModule$1.getString(key, null))
|
1547
|
+
.then((result) => {
|
1548
|
+
if (result) {
|
1549
|
+
let shareData = JSON.parse(result);
|
1550
|
+
if (shareData && shareData.mode >= ES_SHARED_DATA_MODE_WORLD_WRITEABLE
|
1551
|
+
&& ((!shareData.secretKey)
|
1552
|
+
|| (shareData.secretKey && shareData.secretKey === params.secretKey))) {
|
1553
|
+
return this._pushSPSharedData(fileName, key, {
|
1554
|
+
mode: result.mode,
|
1555
|
+
type: result.type,
|
1556
|
+
secretKey: result.secretKey,
|
1557
|
+
data: value,
|
1558
|
+
});
|
1559
|
+
}
|
1560
|
+
}
|
1561
|
+
return Promise.resolve(false);
|
1562
|
+
}
|
1563
|
+
);
|
1564
|
+
}
|
1565
|
+
|
1566
|
+
_pushSPSharedData(fileName, key, sharedData) {
|
1567
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1568
|
+
ESLog.d(TAG$8, "------_pushSPSharedData--end--->>>"
|
1569
|
+
+ "fileName:" + fileName + "--->>>"
|
1570
|
+
+ "key:" + key + "--->>>"
|
1571
|
+
+ "sharedData:" + JSON.stringify(sharedData) + "--->>>"
|
1572
|
+
);
|
1573
|
+
}
|
1574
|
+
return ESSharedPreferencesModule$1.initSharedPreferences(fileName)
|
1575
|
+
.then(() => ESSharedPreferencesModule$1.putString(key, JSON.stringify(sharedData)));
|
1576
|
+
}
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
var ESSPDataModule$1 = new ESSPDataModule();
|
1580
|
+
|
1581
|
+
/**
|
1582
|
+
*
|
1583
|
+
*/
|
1584
|
+
|
1585
|
+
class ESSharedDataManager {
|
1586
|
+
|
1587
|
+
_packageName = "";
|
1588
|
+
_sharedDataManager = null;
|
1589
|
+
|
1590
|
+
init() {
|
1591
|
+
this._packageName = ESManager$1.getESPackageName();
|
1592
|
+
let sdkVersion = ESManager$1.getESSDKVersionCode();
|
1593
|
+
if (sdkVersion >= ES_SDK_VERSION_22) {
|
1594
|
+
this._sharedDataManager = ESSharedDataModule$1;
|
1595
|
+
}
|
1596
|
+
//
|
1597
|
+
else {
|
1598
|
+
this._sharedDataManager = ESSPDataModule$1;
|
1599
|
+
}
|
1600
|
+
return Promise.resolve();
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
getPackageName() {
|
1604
|
+
return this._packageName;
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
//---------------------------操作自己的共享数据--------------------------------
|
1608
|
+
//
|
1609
|
+
getBoolean(key, defValue) {
|
1610
|
+
let params = {
|
1611
|
+
packageName: this._packageName,
|
1612
|
+
};
|
1613
|
+
return this._sharedDataManager.getBoolean(params, key, defValue);
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
putBoolean(secretKey, key, value, mode) {
|
1617
|
+
let params = {
|
1618
|
+
packageName: this._packageName,
|
1619
|
+
secretKey: secretKey,
|
1620
|
+
};
|
1621
|
+
return this._sharedDataManager.putBoolean(params, key, value, mode);
|
1622
|
+
}
|
1623
|
+
|
1624
|
+
//
|
1625
|
+
getInt(key, defValue) {
|
1626
|
+
let params = {
|
1627
|
+
packageName: this._packageName,
|
1628
|
+
};
|
1629
|
+
return this._sharedDataManager.getInt(params, key, defValue);
|
1630
|
+
}
|
1631
|
+
|
1632
|
+
putInt(secretKey, key, value, mode) {
|
1633
|
+
let params = {
|
1634
|
+
packageName: this._packageName,
|
1635
|
+
secretKey: secretKey,
|
1636
|
+
};
|
1637
|
+
return this._sharedDataManager.putInt(params, key, value, mode);
|
1638
|
+
}
|
1639
|
+
|
1640
|
+
//
|
1641
|
+
getLong(key, defValue) {
|
1642
|
+
let params = {
|
1643
|
+
packageName: this._packageName,
|
1644
|
+
};
|
1645
|
+
return this._sharedDataManager.getLong(params, key, defValue);
|
1646
|
+
}
|
1647
|
+
|
1648
|
+
putLong(secretKey, key, value, mode) {
|
1649
|
+
let params = {
|
1650
|
+
packageName: this._packageName,
|
1651
|
+
secretKey: secretKey,
|
1652
|
+
};
|
1653
|
+
return this._sharedDataManager.putLong(params, key, value, mode);
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
//
|
1657
|
+
getString(key, defValue) {
|
1658
|
+
let params = {
|
1659
|
+
packageName: this._packageName,
|
1660
|
+
};
|
1661
|
+
return this._sharedDataManager.getString(params, key, defValue);
|
1662
|
+
}
|
1663
|
+
|
1664
|
+
putString(secretKey, key, value, mode) {
|
1665
|
+
let params = {
|
1666
|
+
packageName: this._packageName,
|
1667
|
+
secretKey: secretKey,
|
1668
|
+
};
|
1669
|
+
return this._sharedDataManager.putString(params, key, value, mode);
|
1670
|
+
}
|
1671
|
+
|
1672
|
+
//
|
1673
|
+
getArray(key, defValue) {
|
1674
|
+
let params = {
|
1675
|
+
packageName: this._packageName,
|
1676
|
+
};
|
1677
|
+
return this._sharedDataManager.getArray(params, key, defValue);
|
1678
|
+
}
|
1679
|
+
|
1680
|
+
putArray(secretKey, key, value, mode) {
|
1681
|
+
let params = {
|
1682
|
+
packageName: this._packageName,
|
1683
|
+
secretKey: secretKey,
|
1684
|
+
};
|
1685
|
+
return this._sharedDataManager.putArray(params, key, value, mode);
|
1686
|
+
}
|
1687
|
+
|
1688
|
+
//
|
1689
|
+
getMap(key, defValue) {
|
1690
|
+
let params = {
|
1691
|
+
packageName: this._packageName,
|
1692
|
+
};
|
1693
|
+
return this._sharedDataManager.getMap(params, key, defValue);
|
1694
|
+
}
|
1695
|
+
|
1696
|
+
putMap(secretKey, key, value, mode) {
|
1697
|
+
let params = {
|
1698
|
+
packageName: this._packageName,
|
1699
|
+
secretKey: secretKey,
|
1700
|
+
};
|
1701
|
+
return this._sharedDataManager.putMap(params, key, value, mode);
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
//----------------------------操作其他APP的共享数据-----------------------------------
|
1705
|
+
//
|
1706
|
+
getSharedBoolean(params, key, defValue) {
|
1707
|
+
return this._sharedDataManager.getBoolean(params, key, defValue);
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
putSharedBoolean(params, key, value) {
|
1711
|
+
return this._sharedDataManager.putBoolean(params, key, value, -1);
|
1712
|
+
}
|
1713
|
+
|
1714
|
+
//
|
1715
|
+
getSharedInt(params, key, defValue) {
|
1716
|
+
return this._sharedDataManager.getInt(params, key, defValue);
|
1717
|
+
}
|
1718
|
+
|
1719
|
+
putSharedInt(params, key, value) {
|
1720
|
+
return this._sharedDataManager.putInt(params, key, value, -1);
|
1721
|
+
}
|
1722
|
+
|
1723
|
+
//
|
1724
|
+
getSharedLong(params, key, defValue) {
|
1725
|
+
return this._sharedDataManager.getLong(params, key, defValue);
|
1726
|
+
}
|
1727
|
+
|
1728
|
+
putSharedLong(params, key, value) {
|
1729
|
+
return this._sharedDataManager.putLong(params, key, value, -1);
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
//
|
1733
|
+
getSharedString(params, key, defValue) {
|
1734
|
+
return this._sharedDataManager.getString(params, key, defValue);
|
1735
|
+
}
|
1736
|
+
|
1737
|
+
putSharedString(params, key, value) {
|
1738
|
+
return this._sharedDataManager.putString(params, key, value, -1);
|
1739
|
+
}
|
1740
|
+
|
1741
|
+
//
|
1742
|
+
getSharedArray(params, key, defValue) {
|
1743
|
+
return this._sharedDataManager.getArray(params, key, defValue);
|
1744
|
+
}
|
1745
|
+
|
1746
|
+
putSharedArray(params, key, value) {
|
1747
|
+
return this._sharedDataManager.putArray(params, key, value, -1);
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
//
|
1751
|
+
getSharedMap(params, key, defValue) {
|
1752
|
+
return this._sharedDataManager.getMap(params, key, defValue);
|
1753
|
+
}
|
1754
|
+
|
1755
|
+
putSharedMap(params, key, value) {
|
1756
|
+
return this._sharedDataManager.putMap(params, key, value, -1);
|
1757
|
+
}
|
1758
|
+
}
|
1759
|
+
|
1760
|
+
var ESSharedDataManager$1 = new ESSharedDataManager();
|
1761
|
+
|
1762
|
+
//
|
1763
|
+
|
1764
|
+
class ESLocationManager {
|
1765
|
+
|
1766
|
+
init() {
|
1767
|
+
return Promise.resolve();
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
getLocation() {
|
1771
|
+
return new Promise((resolve, reject) => {
|
1772
|
+
const params = {
|
1773
|
+
packageName: 'es.extscreen.runtime.setting'
|
1774
|
+
};
|
1775
|
+
ESSharedDataManager$1.getSharedString(params, 'location', '')
|
1776
|
+
.then((str) => {
|
1777
|
+
try {
|
1778
|
+
const location = JSON.parse(str);
|
1779
|
+
resolve(location);
|
1780
|
+
} catch (e) {
|
1781
|
+
resolve(null);
|
1782
|
+
}
|
1783
|
+
},
|
1784
|
+
error => {
|
1785
|
+
reject(error);
|
1786
|
+
});
|
1787
|
+
})
|
1788
|
+
}
|
1789
|
+
|
1790
|
+
launchLocation() {
|
1791
|
+
ESLaunchManager$1.launchNativePage({
|
1792
|
+
url: 'location',
|
1793
|
+
packageName: 'es.extscreen.runtime.setting',
|
1794
|
+
splash: -1,
|
1795
|
+
transparent: true
|
1796
|
+
});
|
1797
|
+
}
|
1798
|
+
}
|
1799
|
+
|
1800
|
+
var ESLocationManager$1 = new ESLocationManager();
|
1801
|
+
|
1802
|
+
let ESApp;
|
1803
|
+
|
1804
|
+
function setESApp(app) {
|
1805
|
+
ESApp = app;
|
1806
|
+
}
|
1807
|
+
|
1808
|
+
function getESApp() {
|
1809
|
+
return ESApp;
|
1810
|
+
}
|
1811
|
+
|
1812
|
+
var ESLocation = {
|
1813
|
+
mounted() {
|
1814
|
+
ESApp.$on('51C16B03BB8CCDEB4CA302D15FA2B9DC', this.__onLocationChangedMessage);
|
1815
|
+
},
|
1816
|
+
|
1817
|
+
methods: {
|
1818
|
+
__onLocationChangedMessage(message) {
|
1819
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1820
|
+
ESLog.d('ESLocationManager', '---------onLocationChange--------->>>>' + JSON.stringify(message));
|
1821
|
+
}
|
1822
|
+
const action = message.action;
|
1823
|
+
if (action !== 'onESLocationChanged') {
|
1824
|
+
return
|
1825
|
+
}
|
1826
|
+
this.onLocationChange(message.extras);
|
1827
|
+
},
|
1828
|
+
onLocationChange(location) {
|
1829
|
+
},
|
1830
|
+
},
|
1831
|
+
|
1832
|
+
beforeDestroy() {
|
1833
|
+
ESApp.$off('51C16B03BB8CCDEB4CA302D15FA2B9DC', this.__onLocationChangedMessage);
|
1834
|
+
},
|
1835
|
+
};
|
1836
|
+
|
1837
|
+
/**
|
1838
|
+
*
|
1839
|
+
*/
|
1840
|
+
class ESAppModule {
|
1841
|
+
|
1842
|
+
isAppInstalled(packageName) {
|
1843
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1844
|
+
'isAppInstalled', packageName);
|
1845
|
+
}
|
1846
|
+
|
1847
|
+
isSystemApp(packageName) {
|
1848
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1849
|
+
'isAppSystem', packageName);
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
getAppList() {
|
1853
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1854
|
+
'getAppList');
|
1855
|
+
}
|
1856
|
+
|
1857
|
+
getAutoStartAppList() {
|
1858
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1859
|
+
'getAutoStartAppList');
|
1860
|
+
}
|
1861
|
+
|
1862
|
+
}
|
1863
|
+
|
1864
|
+
var ESAppModule$1 = new ESAppModule();
|
1865
|
+
|
1866
|
+
/**
|
1867
|
+
*
|
1868
|
+
*/
|
1869
|
+
class ESAppManager {
|
1870
|
+
|
1871
|
+
init() {
|
1872
|
+
return Promise.resolve();
|
1873
|
+
}
|
1874
|
+
|
1875
|
+
isAppInstalled(packageName) {
|
1876
|
+
return ESAppModule$1.isAppInstalled(packageName);
|
1877
|
+
}
|
1878
|
+
|
1879
|
+
isSystemApp(packageName) {
|
1880
|
+
return ESAppModule$1.isSystemApp(packageName);
|
1881
|
+
}
|
1882
|
+
|
1883
|
+
getAppList() {
|
1884
|
+
return ESAppModule$1.getAppList();
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
getAutoStartAppList() {
|
1888
|
+
return ESAppModule$1.getAutoStartAppList();
|
1889
|
+
}
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
var ESAppManager$1 = new ESAppManager();
|
1893
|
+
|
1894
|
+
/**
|
1895
|
+
*
|
1896
|
+
*/
|
1897
|
+
class ESAudioModule {
|
1898
|
+
//------------------------通话音量------------------------
|
1899
|
+
getStreamVoiceCallMaxVolume() {
|
1900
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1901
|
+
'getStreamVoiceCallMaxVolume');
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
getStreamVoiceCallVolume() {
|
1905
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1906
|
+
'getStreamVoiceCallVolume');
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
//------------------------系统音量------------------------
|
1910
|
+
getStreamSystemMaxVolume() {
|
1911
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1912
|
+
'getStreamSystemMaxVolume');
|
1913
|
+
}
|
1914
|
+
|
1915
|
+
getStreamSystemVolume() {
|
1916
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1917
|
+
'getStreamSystemVolume');
|
1918
|
+
}
|
1919
|
+
|
1920
|
+
//------------------------铃声音量------------------------
|
1921
|
+
getStreamRingMaxVolume() {
|
1922
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1923
|
+
'getStreamRingMaxVolume');
|
1924
|
+
}
|
1925
|
+
|
1926
|
+
getStreamRingVolume() {
|
1927
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1928
|
+
'getStreamRingVolume');
|
1929
|
+
}
|
1930
|
+
|
1931
|
+
//------------------------音乐音量------------------------
|
1932
|
+
getStreamMusicMaxVolume() {
|
1933
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1934
|
+
'getStreamMusicMaxVolume');
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
getStreamMusicVolume() {
|
1938
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1939
|
+
'getStreamMusicVolume');
|
1940
|
+
}
|
1941
|
+
|
1942
|
+
//------------------------提示音音量------------------------
|
1943
|
+
getStreamAlarmMaxVolume() {
|
1944
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1945
|
+
'getStreamAlarmMaxVolume');
|
1946
|
+
}
|
1947
|
+
|
1948
|
+
getStreamAlarmVolume() {
|
1949
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1950
|
+
'getStreamAlarmVolume');
|
1951
|
+
}
|
1952
|
+
|
1953
|
+
//------------------------音量------------------------
|
1954
|
+
getStreamMaxVolume(streamType) {
|
1955
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1956
|
+
'getStreamMaxVolume', streamType);
|
1957
|
+
}
|
1958
|
+
|
1959
|
+
getStreamVolume(streamType) {
|
1960
|
+
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
1961
|
+
'getStreamVolume', streamType);
|
1962
|
+
}
|
1963
|
+
|
1964
|
+
//------------------------调整音量------------------------
|
1965
|
+
adjustStreamVolume(streamType, adjust, flags) {
|
1966
|
+
Vue.Native.callNative('AndroidAudioModule',
|
1967
|
+
'adjustStreamVolume', [streamType, adjust, flags]);
|
1968
|
+
}
|
1969
|
+
|
1970
|
+
setStreamVolume(streamType, index, flags) {
|
1971
|
+
Vue.Native.callNative('AndroidAudioModule',
|
1972
|
+
'setStreamVolume', [streamType, index, flags]);
|
1973
|
+
}
|
1974
|
+
|
1975
|
+
setStreamMute(streamType, state) {
|
1976
|
+
Vue.Native.callNative('AndroidAudioModule',
|
1977
|
+
'setStreamMute', [streamType, state]);
|
1978
|
+
}
|
1979
|
+
}
|
1980
|
+
|
1981
|
+
var ESAudioModule$1 = new ESAudioModule();
|
1982
|
+
|
1983
|
+
/**
|
1984
|
+
*
|
1985
|
+
*/
|
1986
|
+
|
1987
|
+
const TAG$7 = 'ESAudioManager';
|
1988
|
+
|
1989
|
+
class ESAudioManager {
|
1990
|
+
|
1991
|
+
_voiceCallMaxVolume = -1;
|
1992
|
+
_voiceCallVolume = -1;
|
1993
|
+
|
1994
|
+
_systemMaxVolume = -1;
|
1995
|
+
_systemVolume = -1;
|
1996
|
+
|
1997
|
+
_musicMaxVolume = -1;
|
1998
|
+
_musicVolume = -1;
|
1999
|
+
|
2000
|
+
_ringMaxVolume = -1;
|
2001
|
+
_ringVolume = -1;
|
2002
|
+
|
2003
|
+
_alarmMaxVolume = -1;
|
2004
|
+
_alarmVolume = -1;
|
2005
|
+
|
2006
|
+
init() {
|
2007
|
+
return this.initPromise();
|
2008
|
+
}
|
2009
|
+
|
2010
|
+
initPromise() {
|
2011
|
+
return new Promise((resolve, reject) => {
|
2012
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2013
|
+
ESLog.d(TAG$7, '------------init----start----->>>>');
|
2014
|
+
}
|
2015
|
+
this.getStreamSystemMaxVolume();
|
2016
|
+
this.getStreamSystemVolume();
|
2017
|
+
this.getStreamMusicMaxVolume();
|
2018
|
+
this.getStreamMusicVolume();
|
2019
|
+
resolve(true);
|
2020
|
+
})
|
907
2021
|
}
|
908
2022
|
|
909
2023
|
//------------------------通话音量------------------------
|
@@ -999,221 +2113,92 @@ class ESAudioManager {
|
|
999
2113
|
.then((volume) => {
|
1000
2114
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1001
2115
|
ESLog.d(TAG$7, '-----getStreamMusicMaxVolume--->>>>' + volume);
|
1002
|
-
}
|
1003
|
-
this._musicMaxVolume = volume;
|
1004
|
-
});
|
1005
|
-
}
|
1006
|
-
|
1007
|
-
get musicMaxVolume() {
|
1008
|
-
return this._musicMaxVolume;
|
1009
|
-
}
|
1010
|
-
|
1011
|
-
getStreamMusicVolume() {
|
1012
|
-
ESAudioModule$1.getStreamMusicVolume()
|
1013
|
-
.then((volume) => {
|
1014
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1015
|
-
ESLog.d(TAG$7, '-----getStreamMusicVolume--->>>>' + volume);
|
1016
|
-
}
|
1017
|
-
this._musicVolume = volume;
|
1018
|
-
});
|
1019
|
-
}
|
1020
|
-
|
1021
|
-
get musicVolume() {
|
1022
|
-
return this._musicVolume;
|
1023
|
-
}
|
1024
|
-
|
1025
|
-
//------------------------提示音音量------------------------
|
1026
|
-
getStreamAlarmMaxVolume() {
|
1027
|
-
ESAudioModule$1.getStreamAlarmMaxVolume()
|
1028
|
-
.then((volume) => {
|
1029
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1030
|
-
ESLog.d(TAG$7, '-----getStreamAlarmMaxVolume--->>>>' + volume);
|
1031
|
-
}
|
1032
|
-
this._alarmMaxVolume = volume;
|
1033
|
-
});
|
1034
|
-
}
|
1035
|
-
|
1036
|
-
get alarmMaxVolume() {
|
1037
|
-
return this._alarmMaxVolume;
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
getStreamAlarmVolume() {
|
1041
|
-
ESAudioModule$1.getStreamAlarmVolume()
|
1042
|
-
.then((volume) => {
|
1043
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1044
|
-
ESLog.d(TAG$7, '-----getStreamAlarmVolume--->>>>' + volume);
|
1045
|
-
}
|
1046
|
-
this._alarmVolume = volume;
|
1047
|
-
});
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
get alarmVolume() {
|
1051
|
-
return this._alarmVolume;
|
1052
|
-
}
|
1053
|
-
|
1054
|
-
//------------------------音量------------------------
|
1055
|
-
getStreamMaxVolume(streamType) {
|
1056
|
-
ESAudioModule$1.getStreamMaxVolume(streamType)
|
1057
|
-
.then((volume) => {
|
1058
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1059
|
-
ESLog.d(TAG$7, streamType + '-----getStreamMaxVolume--->>>>' + volume);
|
1060
|
-
}
|
1061
|
-
});
|
1062
|
-
}
|
1063
|
-
|
1064
|
-
getStreamVolume(streamType) {
|
1065
|
-
ESAudioModule$1.getStreamVolume(streamType)
|
1066
|
-
.then((volume) => {
|
1067
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1068
|
-
ESLog.d(TAG$7, streamType + '-----getStreamVolume--->>>>' + volume);
|
1069
|
-
}
|
1070
|
-
});
|
1071
|
-
}
|
1072
|
-
|
1073
|
-
//------------------------调整音量------------------------
|
1074
|
-
adjustStreamVolume(streamType, adjust, flags) {
|
1075
|
-
ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
|
1076
|
-
}
|
1077
|
-
|
1078
|
-
setStreamVolume(streamType, index, flags) {
|
1079
|
-
ESAudioModule$1.setStreamVolume(streamType, index, flags);
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
setStreamMute(streamType, state) {
|
1083
|
-
ESAudioModule$1.setStreamMute(streamType, state);
|
1084
|
-
}
|
1085
|
-
}
|
1086
|
-
|
1087
|
-
var ESAudioManager$1 = new ESAudioManager();
|
1088
|
-
|
1089
|
-
/**
|
1090
|
-
*
|
1091
|
-
*/
|
1092
|
-
class ESModule {
|
1093
|
-
|
1094
|
-
//---------------------------------ESModule--------------------------
|
1095
|
-
getESDeviceInfo() {
|
1096
|
-
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1097
|
-
'getDeviceInfo',);
|
1098
|
-
}
|
1099
|
-
|
1100
|
-
getESSDKInfo() {
|
1101
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1102
|
-
'getESSDKInfo',);
|
1103
|
-
}
|
1104
|
-
|
1105
|
-
getESSDKVersionCode() {
|
1106
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1107
|
-
'getESSDKVersionCode',);
|
1108
|
-
}
|
1109
|
-
|
1110
|
-
getESSDKVersionName() {
|
1111
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1112
|
-
'getESSDKVersionName',);
|
1113
|
-
}
|
1114
|
-
|
1115
|
-
getESPackageName() {
|
1116
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1117
|
-
'getESPackageName',);
|
1118
|
-
}
|
1119
|
-
|
1120
|
-
getESMiniProgramPath() {
|
1121
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1122
|
-
'getESMiniProgramPath',);
|
1123
|
-
}
|
1124
|
-
|
1125
|
-
sendESNativeMapEventTop(eventName, mapParams) {
|
1126
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1127
|
-
'sendESNativeMapEventTop', eventName, mapParams);
|
1128
|
-
}
|
1129
|
-
|
1130
|
-
sendESNativeArrayEventTop(eventName, arrayParams) {
|
1131
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1132
|
-
'sendESNativeArrayEventTop', eventName, arrayParams);
|
1133
|
-
}
|
1134
|
-
|
1135
|
-
sendESNativeMapEventAll(eventName, mapParams) {
|
1136
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1137
|
-
'sendESNativeMapEventAll', eventName, mapParams);
|
1138
|
-
}
|
1139
|
-
|
1140
|
-
|
1141
|
-
sendESNativeArrayEventAll(eventName, arrayParams) {
|
1142
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1143
|
-
'sendESNativeArrayEventAll', eventName, arrayParams);
|
2116
|
+
}
|
2117
|
+
this._musicMaxVolume = volume;
|
2118
|
+
});
|
1144
2119
|
}
|
1145
2120
|
|
1146
|
-
|
1147
|
-
|
1148
|
-
getSupportSchemes() {
|
1149
|
-
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1150
|
-
'getSupportSchemes',);
|
2121
|
+
get musicMaxVolume() {
|
2122
|
+
return this._musicMaxVolume;
|
1151
2123
|
}
|
1152
2124
|
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
2125
|
+
getStreamMusicVolume() {
|
2126
|
+
ESAudioModule$1.getStreamMusicVolume()
|
2127
|
+
.then((volume) => {
|
2128
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2129
|
+
ESLog.d(TAG$7, '-----getStreamMusicVolume--->>>>' + volume);
|
2130
|
+
}
|
2131
|
+
this._musicVolume = volume;
|
2132
|
+
});
|
1156
2133
|
}
|
1157
2134
|
|
1158
|
-
|
1159
|
-
return
|
1160
|
-
'launchEsPage', {
|
1161
|
-
args: args,
|
1162
|
-
});
|
2135
|
+
get musicVolume() {
|
2136
|
+
return this._musicVolume;
|
1163
2137
|
}
|
1164
2138
|
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
backgroundColor: params.backgroundColor,
|
1174
|
-
splash: params.splash,
|
2139
|
+
//------------------------提示音音量------------------------
|
2140
|
+
getStreamAlarmMaxVolume() {
|
2141
|
+
ESAudioModule$1.getStreamAlarmMaxVolume()
|
2142
|
+
.then((volume) => {
|
2143
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2144
|
+
ESLog.d(TAG$7, '-----getStreamAlarmMaxVolume--->>>>' + volume);
|
2145
|
+
}
|
2146
|
+
this._alarmMaxVolume = volume;
|
1175
2147
|
});
|
1176
2148
|
}
|
1177
2149
|
|
1178
|
-
|
1179
|
-
return
|
1180
|
-
'launchNativeApp', paramsArray);
|
2150
|
+
get alarmMaxVolume() {
|
2151
|
+
return this._alarmMaxVolume;
|
1181
2152
|
}
|
1182
2153
|
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
2154
|
+
getStreamAlarmVolume() {
|
2155
|
+
ESAudioModule$1.getStreamAlarmVolume()
|
2156
|
+
.then((volume) => {
|
2157
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2158
|
+
ESLog.d(TAG$7, '-----getStreamAlarmVolume--->>>>' + volume);
|
2159
|
+
}
|
2160
|
+
this._alarmVolume = volume;
|
2161
|
+
});
|
1186
2162
|
}
|
1187
2163
|
|
1188
|
-
|
1189
|
-
return
|
1190
|
-
'startService', paramsArray);
|
2164
|
+
get alarmVolume() {
|
2165
|
+
return this._alarmVolume;
|
1191
2166
|
}
|
1192
2167
|
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
2168
|
+
//------------------------音量------------------------
|
2169
|
+
getStreamMaxVolume(streamType) {
|
2170
|
+
ESAudioModule$1.getStreamMaxVolume(streamType)
|
2171
|
+
.then((volume) => {
|
2172
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2173
|
+
ESLog.d(TAG$7, streamType + '-----getStreamMaxVolume--->>>>' + volume);
|
2174
|
+
}
|
2175
|
+
});
|
1196
2176
|
}
|
1197
2177
|
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
2178
|
+
getStreamVolume(streamType) {
|
2179
|
+
ESAudioModule$1.getStreamVolume(streamType)
|
2180
|
+
.then((volume) => {
|
2181
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2182
|
+
ESLog.d(TAG$7, streamType + '-----getStreamVolume--->>>>' + volume);
|
2183
|
+
}
|
2184
|
+
});
|
1201
2185
|
}
|
1202
2186
|
|
1203
|
-
|
2187
|
+
//------------------------调整音量------------------------
|
2188
|
+
adjustStreamVolume(streamType, adjust, flags) {
|
2189
|
+
ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
|
2190
|
+
}
|
1204
2191
|
|
1205
|
-
|
1206
|
-
|
1207
|
-
'isModuleRegistered', className);
|
2192
|
+
setStreamVolume(streamType, index, flags) {
|
2193
|
+
ESAudioModule$1.setStreamVolume(streamType, index, flags);
|
1208
2194
|
}
|
1209
2195
|
|
1210
|
-
|
1211
|
-
|
1212
|
-
'isComponentRegistered', className);
|
2196
|
+
setStreamMute(streamType, state) {
|
2197
|
+
ESAudioModule$1.setStreamMute(streamType, state);
|
1213
2198
|
}
|
1214
2199
|
}
|
1215
2200
|
|
1216
|
-
var
|
2201
|
+
var ESAudioManager$1 = new ESAudioManager();
|
1217
2202
|
|
1218
2203
|
/**
|
1219
2204
|
*
|
@@ -1446,165 +2431,20 @@ class ESFileModule {
|
|
1446
2431
|
);
|
1447
2432
|
}
|
1448
2433
|
|
1449
|
-
renameTo(fileId, renameFileId) {
|
1450
|
-
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
1451
|
-
'canExecute', {id: fileId, renameFileId: renameFileId}
|
1452
|
-
);
|
1453
|
-
}
|
1454
|
-
|
1455
|
-
close(fileId) {
|
1456
|
-
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
1457
|
-
'close', {id: fileId}
|
1458
|
-
);
|
1459
|
-
}
|
1460
|
-
}
|
1461
|
-
|
1462
|
-
var ESFileModule$1 = new ESFileModule();
|
1463
|
-
|
1464
|
-
const ES_SDK_VERSION_20 = -1;
|
1465
|
-
const ES_SDK_VERSION_21 = 2.1;
|
1466
|
-
const ES_SDK_VERSION_22 = 2.2;
|
1467
|
-
const ES_SDK_VERSION_22_1 = 2.21;
|
1468
|
-
const ES_SDK_VERSION_23 = 2.3;
|
1469
|
-
const ES_SDK_VERSION_24 = 2.4;
|
1470
|
-
const ES_SDK_VERSION_25 = 2.5;
|
1471
|
-
const ES_SDK_VERSION_26 = 2.6;
|
1472
|
-
const ES_SDK_VERSION_27 = 2.7;
|
1473
|
-
const ES_SDK_VERSION_28 = 2.8;
|
1474
|
-
const ES_SDK_VERSION_29 = 2.9;
|
1475
|
-
const ES_SDK_VERSION_30 = 3.0;
|
1476
|
-
|
1477
|
-
/**
|
1478
|
-
*
|
1479
|
-
*/
|
1480
|
-
|
1481
|
-
class ESManager {
|
1482
|
-
|
1483
|
-
_esSdkCid = null;
|
1484
|
-
_esSdkVersionCode = null;
|
1485
|
-
_esSdkVersionName = null;
|
1486
|
-
_esSdkPackageName = null;
|
1487
|
-
_esMiniProgramPath = null;
|
1488
|
-
_esKitVersionCode = -1;
|
1489
|
-
_esSdkSchemes = [];
|
1490
|
-
_runtimePath = null;
|
1491
|
-
|
1492
|
-
_esSdkInfo = null;
|
1493
|
-
|
1494
|
-
|
1495
|
-
init() {
|
1496
|
-
return Promise.resolve()
|
1497
|
-
.then(() => this.initESInfoPromise())
|
1498
|
-
}
|
1499
|
-
|
1500
|
-
initESInfoPromise() {
|
1501
|
-
return ESModule$1.getESSDKInfo()
|
1502
|
-
.then((result) => {
|
1503
|
-
this._esSdkInfo = result;
|
1504
|
-
if (result) {
|
1505
|
-
this._esSdkVersionCode = result.versionCode;
|
1506
|
-
this._esSdkVersionName = result.versionName;
|
1507
|
-
this._esSdkPackageName = result.packageName;
|
1508
|
-
this._esMiniProgramPath = result.miniProgramPath;
|
1509
|
-
this._esSdkSchemes = result.schemes;
|
1510
|
-
if (result.eskit_ver_code) {
|
1511
|
-
this._esKitVersionCode = result.eskit_ver_code;
|
1512
|
-
}
|
1513
|
-
//
|
1514
|
-
this._runtimePath = result.runtimePath;
|
1515
|
-
}
|
1516
|
-
return ESModule$1.getESDeviceInfo();
|
1517
|
-
}
|
1518
|
-
)
|
1519
|
-
//获取cid
|
1520
|
-
.then((result) => {
|
1521
|
-
if (result) {
|
1522
|
-
this._esSdkCid = result.cid;
|
1523
|
-
}
|
1524
|
-
return Promise.resolve();
|
1525
|
-
}
|
1526
|
-
);
|
1527
|
-
}
|
1528
|
-
|
1529
|
-
getESSDKInfo() {
|
1530
|
-
return this._esSdkInfo;
|
1531
|
-
}
|
1532
|
-
|
1533
|
-
getESSDKCid() {
|
1534
|
-
return this._esSdkCid;
|
1535
|
-
}
|
1536
|
-
|
1537
|
-
getESSDKVersionCode() {
|
1538
|
-
return this._esKitVersionCode;
|
1539
|
-
}
|
1540
|
-
|
1541
|
-
getESSDKVersionName() {
|
1542
|
-
return this._esSdkVersionName;
|
1543
|
-
}
|
1544
|
-
|
1545
|
-
getESPackageName() {
|
1546
|
-
return this._esSdkPackageName;
|
1547
|
-
}
|
1548
|
-
|
1549
|
-
getESVersionCode() {
|
1550
|
-
return this._esSdkVersionCode;
|
1551
|
-
}
|
1552
|
-
|
1553
|
-
getESVersionName() {
|
1554
|
-
return this._esSdkVersionName;
|
1555
|
-
}
|
1556
|
-
|
1557
|
-
/**
|
1558
|
-
* 获取EsApp路径, 用于文件存储管理
|
1559
|
-
* @return
|
1560
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
1561
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
1562
|
-
*/
|
1563
|
-
getESMiniProgramPath() {
|
1564
|
-
return this._esMiniProgramPath;
|
1565
|
-
}
|
1566
|
-
|
1567
|
-
/**
|
1568
|
-
* 获取EsApp路径, 用于文件存储管理
|
1569
|
-
* @return
|
1570
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
1571
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
1572
|
-
*/
|
1573
|
-
getESAppPath() {
|
1574
|
-
return this._esMiniProgramPath;
|
1575
|
-
}
|
1576
|
-
|
1577
|
-
/**
|
1578
|
-
* 获取EsApp运行时路径, 通常用于获取代码包里的assets
|
1579
|
-
* @return
|
1580
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/版本号/android
|
1581
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/2.2.2203/android
|
1582
|
-
*/
|
1583
|
-
getESAppRuntimePath() {
|
1584
|
-
if (this.getESSDKVersionCode() >= ES_SDK_VERSION_22) {
|
1585
|
-
return this._runtimePath;
|
1586
|
-
}
|
1587
|
-
//
|
1588
|
-
else {
|
1589
|
-
return this._esMiniProgramPath;
|
1590
|
-
}
|
1591
|
-
}
|
1592
|
-
|
1593
|
-
getESSDKSupportSchemes() {
|
1594
|
-
return this._esSdkSchemes;
|
1595
|
-
}
|
1596
|
-
|
1597
|
-
//----------------------------组件和模块注册相关--------------------------------------------
|
1598
|
-
isModuleRegistered(className) {
|
1599
|
-
return ESModule$1.isModuleRegistered(className);
|
2434
|
+
renameTo(fileId, renameFileId) {
|
2435
|
+
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
2436
|
+
'canExecute', {id: fileId, renameFileId: renameFileId}
|
2437
|
+
);
|
1600
2438
|
}
|
1601
2439
|
|
1602
|
-
|
1603
|
-
return
|
2440
|
+
close(fileId) {
|
2441
|
+
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
2442
|
+
'close', {id: fileId}
|
2443
|
+
);
|
1604
2444
|
}
|
1605
2445
|
}
|
1606
2446
|
|
1607
|
-
var
|
2447
|
+
var ESFileModule$1 = new ESFileModule();
|
1608
2448
|
|
1609
2449
|
/**
|
1610
2450
|
*
|
@@ -1894,73 +2734,6 @@ class ESPowerManager {
|
|
1894
2734
|
|
1895
2735
|
var ESPowerManager$1 = new ESPowerManager();
|
1896
2736
|
|
1897
|
-
/**
|
1898
|
-
*
|
1899
|
-
*/
|
1900
|
-
|
1901
|
-
class ESSharedPreferencesModule {
|
1902
|
-
|
1903
|
-
initSharedPreferences(name) {
|
1904
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1905
|
-
'initSharedPreferences', name);
|
1906
|
-
}
|
1907
|
-
|
1908
|
-
initESSharedPreferences(name) {
|
1909
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1910
|
-
'initESSharedPreferences', name);
|
1911
|
-
}
|
1912
|
-
|
1913
|
-
//----------------------------------------------------
|
1914
|
-
getBoolean(key, defValue) {
|
1915
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1916
|
-
'getBoolean', key, defValue);
|
1917
|
-
}
|
1918
|
-
|
1919
|
-
putBoolean(key, value) {
|
1920
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1921
|
-
'putBoolean', key, value);
|
1922
|
-
}
|
1923
|
-
|
1924
|
-
//----------------------------------------------------
|
1925
|
-
|
1926
|
-
getInt(key, defValue) {
|
1927
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1928
|
-
'getInt', key, defValue);
|
1929
|
-
}
|
1930
|
-
|
1931
|
-
putInt(key, value) {
|
1932
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1933
|
-
'putInt', key, value);
|
1934
|
-
}
|
1935
|
-
|
1936
|
-
//----------------------------------------------------
|
1937
|
-
|
1938
|
-
getLong(key, defValue) {
|
1939
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1940
|
-
'getLong', key, defValue);
|
1941
|
-
}
|
1942
|
-
|
1943
|
-
putLong(key, value) {
|
1944
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1945
|
-
'putLong', key, value);
|
1946
|
-
}
|
1947
|
-
|
1948
|
-
//----------------------------------------------------
|
1949
|
-
getString(key, defValue) {
|
1950
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1951
|
-
'getString', key, defValue);
|
1952
|
-
}
|
1953
|
-
|
1954
|
-
putString(key, value) {
|
1955
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1956
|
-
'putString', key, value);
|
1957
|
-
}
|
1958
|
-
|
1959
|
-
//----------------------------------------------------
|
1960
|
-
}
|
1961
|
-
|
1962
|
-
var ESSharedPreferencesModule$1 = new ESSharedPreferencesModule();
|
1963
|
-
|
1964
2737
|
/**
|
1965
2738
|
*
|
1966
2739
|
*/
|
@@ -2380,16 +3153,6 @@ class ESUsbDeviceManager {
|
|
2380
3153
|
|
2381
3154
|
var ESUsbDeviceManager$1 = new ESUsbDeviceManager();
|
2382
3155
|
|
2383
|
-
let ESApp;
|
2384
|
-
|
2385
|
-
function setESApp(app) {
|
2386
|
-
ESApp = app;
|
2387
|
-
}
|
2388
|
-
|
2389
|
-
function getESApp() {
|
2390
|
-
return ESApp;
|
2391
|
-
}
|
2392
|
-
|
2393
3156
|
var ESUsbDevice = {
|
2394
3157
|
mounted() {
|
2395
3158
|
ESApp.$on('onUsbDeviceAttached', this.onUsbDeviceAttached);
|
@@ -2540,395 +3303,130 @@ class ESMMapManager {
|
|
2540
3303
|
}
|
2541
3304
|
|
2542
3305
|
//
|
2543
|
-
getString(key, defValue) {
|
2544
|
-
return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
|
2545
|
-
}
|
2546
|
-
|
2547
|
-
putString(key, value, mode) {
|
2548
|
-
return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
|
2549
|
-
}
|
2550
|
-
|
2551
|
-
//
|
2552
|
-
getArray(key, defValue) {
|
2553
|
-
return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
|
2554
|
-
}
|
2555
|
-
|
2556
|
-
putArray(key, value, mode) {
|
2557
|
-
return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
|
2558
|
-
}
|
2559
|
-
|
2560
|
-
//
|
2561
|
-
getMap(key, defValue) {
|
2562
|
-
return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
|
2563
|
-
}
|
2564
|
-
|
2565
|
-
putMap(key, value, mode) {
|
2566
|
-
return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
|
2567
|
-
}
|
2568
|
-
|
2569
|
-
//----------------------------操作其他APP的共享内存-----------------------------------
|
2570
|
-
//
|
2571
|
-
getSharedBoolean(packageName, key, defValue) {
|
2572
|
-
return ESMMapModule$1.getBoolean(packageName, key, defValue);
|
2573
|
-
}
|
2574
|
-
|
2575
|
-
putSharedBoolean(packageName, key, value) {
|
2576
|
-
return ESMMapModule$1.putBoolean(packageName, key, value, -1);
|
2577
|
-
}
|
2578
|
-
|
2579
|
-
//
|
2580
|
-
getSharedInt(packageName, key, defValue) {
|
2581
|
-
return ESMMapModule$1.getInt(packageName, key, defValue);
|
2582
|
-
}
|
2583
|
-
|
2584
|
-
putSharedInt(packageName, key, value) {
|
2585
|
-
return ESMMapModule$1.putInt(packageName, key, value, -1);
|
2586
|
-
}
|
2587
|
-
|
2588
|
-
//
|
2589
|
-
getSharedLong(packageName, key, defValue) {
|
2590
|
-
return ESMMapModule$1.getLong(packageName, key, defValue);
|
2591
|
-
}
|
2592
|
-
|
2593
|
-
putSharedLong(packageName, key, value) {
|
2594
|
-
return ESMMapModule$1.putLong(packageName, key, value, -1);
|
2595
|
-
}
|
2596
|
-
|
2597
|
-
//
|
2598
|
-
getSharedString(packageName, key, defValue) {
|
2599
|
-
return ESMMapModule$1.getString(packageName, key, defValue);
|
2600
|
-
}
|
2601
|
-
|
2602
|
-
putSharedString(packageName, key, value) {
|
2603
|
-
return ESMMapModule$1.putString(packageName, key, value, -1);
|
2604
|
-
}
|
2605
|
-
|
2606
|
-
//
|
2607
|
-
getSharedArray(packageName, key, defValue) {
|
2608
|
-
return ESMMapModule$1.getArray(packageName, key, defValue);
|
2609
|
-
}
|
2610
|
-
|
2611
|
-
putSharedArray(packageName, key, value) {
|
2612
|
-
return ESMMapModule$1.putArray(packageName, key, value, -1);
|
2613
|
-
}
|
2614
|
-
|
2615
|
-
//
|
2616
|
-
getSharedMap(packageName, key, defValue) {
|
2617
|
-
return ESMMapModule$1.getMap(packageName, key, defValue);
|
2618
|
-
}
|
2619
|
-
|
2620
|
-
putSharedMap(packageName, key, value) {
|
2621
|
-
return ESMMapModule$1.putMap(packageName, key, value, -1);
|
2622
|
-
}
|
2623
|
-
}
|
2624
|
-
|
2625
|
-
var ESMMapManager$1 = new ESMMapManager();
|
2626
|
-
|
2627
|
-
/**
|
2628
|
-
*
|
2629
|
-
*/
|
2630
|
-
|
2631
|
-
class ESDisplayManager {
|
2632
|
-
|
2633
|
-
_screenWidth = 1920;
|
2634
|
-
_screenHeight = 1080;
|
2635
|
-
_scale = 1;
|
2636
|
-
|
2637
|
-
init() {
|
2638
|
-
return new Promise((resolve, reject) => {
|
2639
|
-
try {
|
2640
|
-
this._screenWidth = ESDeviceManager$1.getScreenWidth();
|
2641
|
-
this._screenHeight = ESDeviceManager$1.getScreenHeight();
|
2642
|
-
this._scale = this._screenHeight / 1080;
|
2643
|
-
} catch (e) {
|
2644
|
-
}
|
2645
|
-
resolve(true);
|
2646
|
-
});
|
2647
|
-
}
|
2648
|
-
|
2649
|
-
getDisplayScale() {
|
2650
|
-
return this._scale;
|
2651
|
-
}
|
2652
|
-
|
2653
|
-
getDisplaySize(size) {
|
2654
|
-
return this._scale * size;
|
2655
|
-
}
|
2656
|
-
|
2657
|
-
getScreenWidth() {
|
2658
|
-
return this._screenWidth;
|
2659
|
-
}
|
2660
|
-
|
2661
|
-
getScreenHeight() {
|
2662
|
-
return this._screenHeight;
|
2663
|
-
}
|
2664
|
-
}
|
2665
|
-
|
2666
|
-
var ESDisplayManager$1 = new ESDisplayManager();
|
2667
|
-
|
2668
|
-
/**
|
2669
|
-
*
|
2670
|
-
*/
|
2671
|
-
|
2672
|
-
|
2673
|
-
class ESLaunchManager {
|
2674
|
-
|
2675
|
-
_ESRouter = null;
|
2676
|
-
_ESRouterEnabled = true;
|
2677
|
-
_ESPageRouterViewSupported = false;
|
2678
|
-
_launchLimit = 10;
|
2679
|
-
|
2680
|
-
_routeListener = null;
|
2681
|
-
|
2682
|
-
_routeListenerList = [];
|
2683
|
-
|
2684
|
-
init(router) {
|
2685
|
-
try {
|
2686
|
-
this._ESRouter = router;
|
2687
|
-
this._ESPageRouterViewSupported = this.isESPageRouterViewSupported();
|
2688
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2689
|
-
ESLog.d('ESRouter', '#------init--------->>' + '\n' +
|
2690
|
-
'_ESPageRouterViewSupported: ' + this._ESPageRouterViewSupported + '\n' +
|
2691
|
-
'_ESRouter: ' + this._ESRouter
|
2692
|
-
);
|
2693
|
-
}
|
2694
|
-
} catch (e) {
|
2695
|
-
}
|
2696
|
-
//
|
2697
|
-
this._setESPageRouterViewSupported(this._ESPageRouterViewSupported);
|
2698
|
-
return Promise.resolve();
|
2699
|
-
}
|
2700
|
-
|
2701
|
-
//----------------------ESPageRouterView--------------------------
|
2702
|
-
_setESPageRouterViewSupported(enabled) {
|
2703
|
-
this._ESPageRouterViewSupported = enabled;
|
2704
|
-
try {
|
2705
|
-
if (this._ESRouter) {
|
2706
|
-
this._ESRouter.setESPageRouterViewSupported(enabled);
|
2707
|
-
}
|
2708
|
-
} catch (e) {
|
2709
|
-
}
|
3306
|
+
getString(key, defValue) {
|
3307
|
+
return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
|
2710
3308
|
}
|
2711
3309
|
|
2712
|
-
|
2713
|
-
return
|
3310
|
+
putString(key, value, mode) {
|
3311
|
+
return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
|
2714
3312
|
}
|
2715
3313
|
|
2716
|
-
|
2717
|
-
|
3314
|
+
//
|
3315
|
+
getArray(key, defValue) {
|
3316
|
+
return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
|
2718
3317
|
}
|
2719
3318
|
|
2720
|
-
|
2721
|
-
|
2722
|
-
isESRouterEnabled() {
|
2723
|
-
return this._ESRouterEnabled;
|
3319
|
+
putArray(key, value, mode) {
|
3320
|
+
return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
|
2724
3321
|
}
|
2725
3322
|
|
2726
|
-
|
2727
|
-
|
3323
|
+
//
|
3324
|
+
getMap(key, defValue) {
|
3325
|
+
return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
|
2728
3326
|
}
|
2729
3327
|
|
2730
|
-
|
2731
|
-
this.
|
2732
|
-
if (this._ESRouter) {
|
2733
|
-
try {
|
2734
|
-
this._ESRouter.setRouteLimit(limit);
|
2735
|
-
} catch (e) {
|
2736
|
-
}
|
2737
|
-
}
|
3328
|
+
putMap(key, value, mode) {
|
3329
|
+
return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
|
2738
3330
|
}
|
2739
3331
|
|
2740
|
-
|
3332
|
+
//----------------------------操作其他APP的共享内存-----------------------------------
|
3333
|
+
//
|
3334
|
+
getSharedBoolean(packageName, key, defValue) {
|
3335
|
+
return ESMMapModule$1.getBoolean(packageName, key, defValue);
|
3336
|
+
}
|
2741
3337
|
|
2742
|
-
|
2743
|
-
|
2744
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2745
|
-
let l = this._routeListenerList[i];
|
2746
|
-
if (l === routeListener) {
|
2747
|
-
return;
|
2748
|
-
}
|
2749
|
-
}
|
2750
|
-
}
|
2751
|
-
this._routeListenerList.push(routeListener);
|
3338
|
+
putSharedBoolean(packageName, key, value) {
|
3339
|
+
return ESMMapModule$1.putBoolean(packageName, key, value, -1);
|
2752
3340
|
}
|
2753
3341
|
|
2754
|
-
|
2755
|
-
|
2756
|
-
|
2757
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2758
|
-
let l = this._routeListenerList[i];
|
2759
|
-
if (l === routeListener) {
|
2760
|
-
index = i;
|
2761
|
-
}
|
2762
|
-
}
|
2763
|
-
if (index > -1) {
|
2764
|
-
this._routeListenerList.splice(index, 1);
|
2765
|
-
}
|
2766
|
-
}
|
3342
|
+
//
|
3343
|
+
getSharedInt(packageName, key, defValue) {
|
3344
|
+
return ESMMapModule$1.getInt(packageName, key, defValue);
|
2767
3345
|
}
|
2768
3346
|
|
2769
|
-
|
2770
|
-
|
2771
|
-
if (this._routeListenerList && this._routeListenerList.length > 0) {
|
2772
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2773
|
-
let listener = this._routeListenerList[i];
|
2774
|
-
if (listener && this.isFunction(listener)) {
|
2775
|
-
try {
|
2776
|
-
listener(url, params);
|
2777
|
-
} catch (e) {
|
2778
|
-
}
|
2779
|
-
}
|
2780
|
-
}
|
2781
|
-
}
|
2782
|
-
} catch (e) {
|
2783
|
-
}
|
3347
|
+
putSharedInt(packageName, key, value) {
|
3348
|
+
return ESMMapModule$1.putInt(packageName, key, value, -1);
|
2784
3349
|
}
|
2785
3350
|
|
2786
|
-
|
2787
|
-
|
2788
|
-
|
3351
|
+
//
|
3352
|
+
getSharedLong(packageName, key, defValue) {
|
3353
|
+
return ESMMapModule$1.getLong(packageName, key, defValue);
|
2789
3354
|
}
|
2790
3355
|
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
if (this._routeListener && this.isFunction(this._routeListener)) {
|
2795
|
-
this._routeListener(url, params);
|
2796
|
-
}
|
2797
|
-
} catch (e) {
|
3356
|
+
putSharedLong(packageName, key, value) {
|
3357
|
+
return ESMMapModule$1.putLong(packageName, key, value, -1);
|
3358
|
+
}
|
2798
3359
|
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
this._notifyRouteListenerList(url, params);
|
2803
|
-
} catch (e) {
|
2804
|
-
}
|
3360
|
+
//
|
3361
|
+
getSharedString(packageName, key, defValue) {
|
3362
|
+
return ESMMapModule$1.getString(packageName, key, defValue);
|
2805
3363
|
}
|
2806
3364
|
|
2807
|
-
|
2808
|
-
return
|
3365
|
+
putSharedString(packageName, key, value) {
|
3366
|
+
return ESMMapModule$1.putString(packageName, key, value, -1);
|
2809
3367
|
}
|
2810
3368
|
|
2811
|
-
|
2812
|
-
|
2813
|
-
return
|
3369
|
+
//
|
3370
|
+
getSharedArray(packageName, key, defValue) {
|
3371
|
+
return ESMMapModule$1.getArray(packageName, key, defValue);
|
2814
3372
|
}
|
2815
3373
|
|
2816
|
-
|
2817
|
-
return
|
2818
|
-
args: {
|
2819
|
-
url: intent.url,
|
2820
|
-
params: intent.params
|
2821
|
-
},
|
2822
|
-
flags: intent.flags,
|
2823
|
-
pageTag: intent.pageTag,
|
2824
|
-
pageLimit: intent.pageLimit,
|
2825
|
-
backgroundColor: intent.backgroundColor,
|
2826
|
-
//
|
2827
|
-
pkg: intent.packageName,
|
2828
|
-
splash: intent.splash,
|
2829
|
-
});
|
3374
|
+
putSharedArray(packageName, key, value) {
|
3375
|
+
return ESMMapModule$1.putArray(packageName, key, value, -1);
|
2830
3376
|
}
|
2831
3377
|
|
2832
|
-
|
2833
|
-
|
2834
|
-
|
3378
|
+
//
|
3379
|
+
getSharedMap(packageName, key, defValue) {
|
3380
|
+
return ESMMapModule$1.getMap(packageName, key, defValue);
|
3381
|
+
}
|
2835
3382
|
|
2836
|
-
|
2837
|
-
|
2838
|
-
&& this._ESRouter) {
|
2839
|
-
//
|
2840
|
-
this._notifyListeners(url, params);
|
2841
|
-
//
|
2842
|
-
this._ESRouter.push({
|
2843
|
-
name: url,
|
2844
|
-
params: params,
|
2845
|
-
});
|
2846
|
-
}
|
2847
|
-
//
|
2848
|
-
else {
|
2849
|
-
//
|
2850
|
-
this._notifyListeners(url, params);
|
2851
|
-
//
|
2852
|
-
this.launchNativePage(intent);
|
2853
|
-
}
|
3383
|
+
putSharedMap(packageName, key, value) {
|
3384
|
+
return ESMMapModule$1.putMap(packageName, key, value, -1);
|
2854
3385
|
}
|
3386
|
+
}
|
2855
3387
|
|
2856
|
-
|
2857
|
-
let url = intent.url;
|
2858
|
-
let params = intent.params;
|
3388
|
+
var ESMMapManager$1 = new ESMMapManager();
|
2859
3389
|
|
2860
|
-
|
2861
|
-
|
2862
|
-
|
2863
|
-
this._ESRouter.back();
|
2864
|
-
//
|
2865
|
-
this._notifyListeners(url, params);
|
3390
|
+
/**
|
3391
|
+
*
|
3392
|
+
*/
|
2866
3393
|
|
2867
|
-
|
2868
|
-
name: intent.url,
|
2869
|
-
params: intent.params,
|
2870
|
-
});
|
2871
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2872
|
-
ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
|
2873
|
-
}
|
2874
|
-
}
|
2875
|
-
//
|
2876
|
-
else {
|
2877
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2878
|
-
ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
|
2879
|
-
}
|
2880
|
-
//1.finish
|
2881
|
-
ESModule$1.finish();
|
2882
|
-
//
|
2883
|
-
this._notifyListeners(url, params);
|
3394
|
+
class ESDisplayManager {
|
2884
3395
|
|
2885
|
-
|
2886
|
-
|
2887
|
-
|
2888
|
-
}
|
3396
|
+
_screenWidth = 1920;
|
3397
|
+
_screenHeight = 1080;
|
3398
|
+
_scale = 1;
|
2889
3399
|
|
2890
|
-
|
2891
|
-
|
2892
|
-
|
3400
|
+
init() {
|
3401
|
+
return new Promise((resolve, reject) => {
|
3402
|
+
try {
|
3403
|
+
this._screenWidth = ESDeviceManager$1.getScreenWidth();
|
3404
|
+
this._screenHeight = ESDeviceManager$1.getScreenHeight();
|
3405
|
+
this._scale = this._screenHeight / 1080;
|
3406
|
+
} catch (e) {
|
3407
|
+
}
|
3408
|
+
resolve(true);
|
3409
|
+
});
|
3410
|
+
}
|
2893
3411
|
|
2894
|
-
|
2895
|
-
|
2896
|
-
|
3412
|
+
getDisplayScale() {
|
3413
|
+
return this._scale;
|
3414
|
+
}
|
2897
3415
|
|
2898
|
-
|
2899
|
-
|
2900
|
-
&& this.isESRouterSupported()
|
2901
|
-
&& this._ESRouter
|
2902
|
-
&& this._ESRouter.back()) {
|
2903
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2904
|
-
ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
|
2905
|
-
}
|
2906
|
-
//
|
3416
|
+
getDisplaySize(size) {
|
3417
|
+
return this._scale * size;
|
2907
3418
|
}
|
2908
|
-
|
2909
|
-
|
2910
|
-
|
2911
|
-
ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
|
2912
|
-
}
|
2913
|
-
ESModule$1.finish();
|
3419
|
+
|
3420
|
+
getScreenWidth() {
|
3421
|
+
return this._screenWidth;
|
2914
3422
|
}
|
2915
|
-
}
|
2916
3423
|
|
2917
|
-
|
2918
|
-
|
2919
|
-
*/
|
2920
|
-
getCurrentESPage() {
|
2921
|
-
if (this._ESRouter && this._ESRouter.currentRoute) {
|
2922
|
-
return {
|
2923
|
-
url: this._ESRouter.currentRoute.name,
|
2924
|
-
params: this._ESRouter.currentRoute.params,
|
2925
|
-
};
|
3424
|
+
getScreenHeight() {
|
3425
|
+
return this._screenHeight;
|
2926
3426
|
}
|
2927
|
-
return null;
|
2928
|
-
}
|
2929
3427
|
}
|
2930
3428
|
|
2931
|
-
var
|
3429
|
+
var ESDisplayManager$1 = new ESDisplayManager();
|
2932
3430
|
|
2933
3431
|
/**
|
2934
3432
|
*
|
@@ -3693,6 +4191,7 @@ class ES {
|
|
3693
4191
|
.then(() => ESNetworkManager$1.init())
|
3694
4192
|
.then(() => ESPluginManager$1.init())
|
3695
4193
|
.then(() => ESLaunchManager$1.init(configuration.router))
|
4194
|
+
.then(() => ESSharedDataManager$1.init())
|
3696
4195
|
.then(() => Promise.all([
|
3697
4196
|
ESUsbDeviceManager$1.init(),
|
3698
4197
|
ESStorageManager$1.init(),
|
@@ -3705,6 +4204,7 @@ class ES {
|
|
3705
4204
|
ESEventBus$1.init(),
|
3706
4205
|
ESBroadcastManager$1.init(),
|
3707
4206
|
ESLocalStorage$1.init(),
|
4207
|
+
ESLocationManager$1.init()
|
3708
4208
|
]))
|
3709
4209
|
}
|
3710
4210
|
//
|
@@ -4275,4 +4775,4 @@ const ES_KEYCODE_ESCAPE = 111;
|
|
4275
4775
|
const ES_KEYCODE_MENU = 82;
|
4276
4776
|
const ES_KEYCODE_SEARCH = 84;
|
4277
4777
|
|
4278
|
-
export { ES$1 as ES, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLocalStorage$1 as ESLocalStorage, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESRouter, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESToast$1 as ESToast, ESToastModule$1 as ESToastModule, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_AUDIO_CONTENT_TYPE_MOVIE, ES_AUDIO_CONTENT_TYPE_MUSIC, ES_AUDIO_CONTENT_TYPE_SONIFICATION, ES_AUDIO_CONTENT_TYPE_SPEECH, ES_AUDIO_CONTENT_TYPE_UNKNOWN, ES_AUDIO_DIRECTION_ADJUST_LOWER, ES_AUDIO_DIRECTION_ADJUST_RAISE, ES_AUDIO_DIRECTION_ADJUST_SAME, ES_AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, ES_AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, ES_AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, ES_AUDIO_MANAGER_FLAG_FIXED_VOLUME, ES_AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, ES_AUDIO_MANAGER_FLAG_PLAY_SOUND, ES_AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, ES_AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, ES_AUDIO_MANAGER_FLAG_SHOW_UI, ES_AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, ES_AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, ES_AUDIO_MANAGER_FLAG_VIBRATE, ES_AUDIO_STREAM_ACCESSIBILITY, ES_AUDIO_STREAM_ALARM, ES_AUDIO_STREAM_ASSISTANT, ES_AUDIO_STREAM_BLUETOOTH_SCO, ES_AUDIO_STREAM_DEFAULT, ES_AUDIO_STREAM_DTMF, ES_AUDIO_STREAM_MUSIC, ES_AUDIO_STREAM_NOTIFICATION, ES_AUDIO_STREAM_RING, ES_AUDIO_STREAM_SYSTEM, ES_AUDIO_STREAM_SYSTEM_ENFORCED, ES_AUDIO_STREAM_TTS, ES_AUDIO_STREAM_VOICE_CALL, ES_AUDIO_USAGE_ALARM, ES_AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, ES_AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, ES_AUDIO_USAGE_ASSISTANCE_SONIFICATION, ES_AUDIO_USAGE_ASSISTANT, ES_AUDIO_USAGE_GAME, ES_AUDIO_USAGE_INVALID, ES_AUDIO_USAGE_MEDIA, ES_AUDIO_USAGE_NOTIFICATION, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, ES_AUDIO_USAGE_NOTIFICATION_EVENT, ES_AUDIO_USAGE_NOTIFICATION_RINGTONE, ES_AUDIO_USAGE_UNKNOWN, ES_AUDIO_USAGE_VIRTUAL_SOURCE, ES_AUDIO_USAGE_VOICE_COMMUNICATION, ES_AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, ES_SDK_VERSION_23, ES_SDK_VERSION_24, ES_SDK_VERSION_25, ES_SDK_VERSION_26, ES_SDK_VERSION_27, ES_SDK_VERSION_28, ES_SDK_VERSION_29, ES_SDK_VERSION_30, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };
|
4778
|
+
export { ES$1 as ES, ESApp, ESAppManager$1 as ESAppManager, ESAppModule$1 as ESAppModule, ESApplication, ESAudioManager$1 as ESAudioManager, ESAudioModule$1 as ESAudioModule, ESBackPress, ESBackPressMixin, ESBroadcast, ESBroadcastManager$1 as ESBroadcastManager, ESDevelopManager$1 as ESDevelopManager, ESDevelopModule$1 as ESDevelopModule, ESDeviceManager$1 as ESDeviceManager, ESDeviceModule$1 as ESDeviceModule, ESDisplayManager$1 as ESDisplayManager, ESEventBus$1 as ESEventBus, ESEventBusEvent, ESFile, ESFileModule$1 as ESFileModule, ESFocusManager$1 as ESFocusManager, ESFocusModule$1 as ESFocusModule, ESKeyEvent, ESKeyEventMixin, ESLaunchManager$1 as ESLaunchManager, ESLocalStorage$1 as ESLocalStorage, ESLocation, ESLocationManager$1 as ESLocationManager, ESMMapManager$1 as ESMMapManager, ESMMapModule$1 as ESMMapModule, ESManager$1 as ESManager, ESModule$1 as ESModule, ESNetwork, ESNetworkManager$1 as ESNetworkManager, ESNetworkMixin, ESNetworkModule$1 as ESNetworkModule, ESPage, ESPageLifecycle, ESPermissionManager$1 as ESPermissionManager, ESPermissionModule$1 as ESPermissionModule, ESPlugin, ESPluginManager$1 as ESPluginManager, ESPluginModule$1 as ESPluginModule, ESPowerManager$1 as ESPowerManager, ESPowerModule$1 as ESPowerModule, ESRouter, ESSharedDataManager$1 as ESSharedDataManager, ESSharedPreferencesManager$1 as ESSharedPreferencesManager, ESSharedPreferencesModule$1 as ESSharedPreferencesModule, ESStorageManager$1 as ESStorageManager, ESStorageModule$1 as ESStorageModule, ESToast$1 as ESToast, ESToastModule$1 as ESToastModule, ESUsbDevice, ESUsbDeviceManager$1 as ESUsbDeviceManager, ESUsbDeviceMixin, ESUsbDeviceModule$1 as ESUsbDeviceModule, ES_AUDIO_CONTENT_TYPE_MOVIE, ES_AUDIO_CONTENT_TYPE_MUSIC, ES_AUDIO_CONTENT_TYPE_SONIFICATION, ES_AUDIO_CONTENT_TYPE_SPEECH, ES_AUDIO_CONTENT_TYPE_UNKNOWN, ES_AUDIO_DIRECTION_ADJUST_LOWER, ES_AUDIO_DIRECTION_ADJUST_RAISE, ES_AUDIO_DIRECTION_ADJUST_SAME, ES_AUDIO_MANAGER_FLAG_ACTIVE_MEDIA_ONLY, ES_AUDIO_MANAGER_FLAG_ALLOW_RINGER_MODES, ES_AUDIO_MANAGER_FLAG_BLUETOOTH_ABS_VOLUME, ES_AUDIO_MANAGER_FLAG_FIXED_VOLUME, ES_AUDIO_MANAGER_FLAG_HDMI_SYSTEM_AUDIO_VOLUME, ES_AUDIO_MANAGER_FLAG_PLAY_SOUND, ES_AUDIO_MANAGER_FLAG_REMOVE_SOUND_AND_VIBRATE, ES_AUDIO_MANAGER_FLAG_SHOW_SILENT_HINT, ES_AUDIO_MANAGER_FLAG_SHOW_UI, ES_AUDIO_MANAGER_FLAG_SHOW_UI_WARNINGS, ES_AUDIO_MANAGER_FLAG_SHOW_VIBRATE_HINT, ES_AUDIO_MANAGER_FLAG_VIBRATE, ES_AUDIO_STREAM_ACCESSIBILITY, ES_AUDIO_STREAM_ALARM, ES_AUDIO_STREAM_ASSISTANT, ES_AUDIO_STREAM_BLUETOOTH_SCO, ES_AUDIO_STREAM_DEFAULT, ES_AUDIO_STREAM_DTMF, ES_AUDIO_STREAM_MUSIC, ES_AUDIO_STREAM_NOTIFICATION, ES_AUDIO_STREAM_RING, ES_AUDIO_STREAM_SYSTEM, ES_AUDIO_STREAM_SYSTEM_ENFORCED, ES_AUDIO_STREAM_TTS, ES_AUDIO_STREAM_VOICE_CALL, ES_AUDIO_USAGE_ALARM, ES_AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY, ES_AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE, ES_AUDIO_USAGE_ASSISTANCE_SONIFICATION, ES_AUDIO_USAGE_ASSISTANT, ES_AUDIO_USAGE_GAME, ES_AUDIO_USAGE_INVALID, ES_AUDIO_USAGE_MEDIA, ES_AUDIO_USAGE_NOTIFICATION, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT, ES_AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST, ES_AUDIO_USAGE_NOTIFICATION_EVENT, ES_AUDIO_USAGE_NOTIFICATION_RINGTONE, ES_AUDIO_USAGE_UNKNOWN, ES_AUDIO_USAGE_VIRTUAL_SOURCE, ES_AUDIO_USAGE_VOICE_COMMUNICATION, ES_AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING, ES_KEYCODE_BACK, ES_KEYCODE_DPAD_CENTER, ES_KEYCODE_DPAD_DOWN, ES_KEYCODE_DPAD_LEFT, ES_KEYCODE_DPAD_RIGHT, ES_KEYCODE_DPAD_UP, ES_KEYCODE_ENTER, ES_KEYCODE_ESCAPE, ES_KEYCODE_MENU, ES_KEYCODE_SEARCH, ES_KEY_ACTION_DOWN, ES_KEY_ACTION_UP, ES_LIFECYCLE_ON_CREATE, ES_LIFECYCLE_ON_DESTROY, ES_LIFECYCLE_ON_INITIALIZED, ES_LIFECYCLE_ON_PAUSE, ES_LIFECYCLE_ON_RESTART, ES_LIFECYCLE_ON_RESTORE_INSTANCE_SATE, ES_LIFECYCLE_ON_RESUME, ES_LIFECYCLE_ON_SAVE_INSTANCE_SATE, ES_LIFECYCLE_ON_START, ES_LIFECYCLE_ON_STOP, ES_LIFECYCLE_ON_UNINITIALIZED, ES_MMP_MODE_PRIVATE, ES_MMP_MODE_WORLD_READABLE, ES_MMP_MODE_WORLD_WRITEABLE, ES_NETWORK_INFO_STATE_CONNECTED, ES_NETWORK_INFO_STATE_CONNECTING, ES_NETWORK_INFO_STATE_DISCONNECTED, ES_NETWORK_INFO_STATE_DISCONNECTING, ES_NETWORK_INFO_STATE_SUSPENDED, ES_NETWORK_INFO_STATE_UNKNOWN, ES_NETWORK_INFO_TYPE_ETHERNET, ES_NETWORK_INFO_TYPE_MOBILE, ES_NETWORK_INFO_TYPE_NONE, ES_NETWORK_INFO_TYPE_WIFI, ES_SDK_VERSION_20, ES_SDK_VERSION_21, ES_SDK_VERSION_22, ES_SDK_VERSION_22_1, ES_SDK_VERSION_23, ES_SDK_VERSION_24, ES_SDK_VERSION_25, ES_SDK_VERSION_26, ES_SDK_VERSION_27, ES_SDK_VERSION_28, ES_SDK_VERSION_29, ES_SDK_VERSION_30, ES_SHARED_DATA_MODE_PRIVATE, ES_SHARED_DATA_MODE_WORLD_READABLE, ES_SHARED_DATA_MODE_WORLD_WRITEABLE, ES_SHARED_DATA_TYPE_ARRAY, ES_SHARED_DATA_TYPE_BOOLEAN, ES_SHARED_DATA_TYPE_FLOAT, ES_SHARED_DATA_TYPE_INT, ES_SHARED_DATA_TYPE_LONG, ES_SHARED_DATA_TYPE_MAP, ES_SHARED_DATA_TYPE_STRING, KEYCODE_BACK, KEYCODE_DPAD_CENTER, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, KEYCODE_DPAD_RIGHT, KEYCODE_DPAD_UP, KEYCODE_ENTER, KEYCODE_ESCAPE, KEYCODE_MENU, KEYCODE_SEARCH, KEY_ACTION_DOWN, KEY_ACTION_UP, Toast$1 as Toast, getESApp, setESApp };
|