@extscreen/es-core 3.0.2 → 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 +1409 -903
- 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
|
}
|
@@ -568,7 +568,10 @@ class ESNetworkManager {
|
|
568
568
|
|
569
569
|
var ESNetworkManager$1 = new ESNetworkManager();
|
570
570
|
|
571
|
-
|
571
|
+
/**
|
572
|
+
* 安卓原生Toast
|
573
|
+
*/
|
574
|
+
class ToastModule {
|
572
575
|
|
573
576
|
showToast(message) {
|
574
577
|
Vue.Native.callNative('ESToastModule', 'showToast', message);
|
@@ -583,7 +586,7 @@ class ToastModule$1 {
|
|
583
586
|
}
|
584
587
|
}
|
585
588
|
|
586
|
-
var ToastModule$
|
589
|
+
var ToastModule$1 = new ToastModule();
|
587
590
|
|
588
591
|
/**
|
589
592
|
*
|
@@ -596,20 +599,48 @@ class Toast {
|
|
596
599
|
}
|
597
600
|
|
598
601
|
showToast(message) {
|
599
|
-
ToastModule$
|
602
|
+
ToastModule$1.showToast(message);
|
600
603
|
}
|
601
604
|
|
602
605
|
showLongToast(message) {
|
603
|
-
ToastModule$
|
606
|
+
ToastModule$1.showLongToast(message);
|
604
607
|
}
|
605
608
|
|
606
609
|
showShortToast(message) {
|
607
|
-
ToastModule$
|
610
|
+
ToastModule$1.showShortToast(message);
|
608
611
|
}
|
609
612
|
}
|
610
613
|
|
611
614
|
var Toast$1 = new Toast();
|
612
615
|
|
616
|
+
/**
|
617
|
+
*
|
618
|
+
*/
|
619
|
+
|
620
|
+
class ESToast {
|
621
|
+
|
622
|
+
init() {
|
623
|
+
return Promise.resolve();
|
624
|
+
}
|
625
|
+
|
626
|
+
showToast(message) {
|
627
|
+
ToastModule$1.showToast(message);
|
628
|
+
}
|
629
|
+
|
630
|
+
showLongToast(message) {
|
631
|
+
ToastModule$1.showLongToast(message);
|
632
|
+
}
|
633
|
+
|
634
|
+
showShortToast(message) {
|
635
|
+
ToastModule$1.showShortToast(message);
|
636
|
+
}
|
637
|
+
}
|
638
|
+
|
639
|
+
var ESToast$1 = new ESToast();
|
640
|
+
|
641
|
+
/**
|
642
|
+
* 自定义Toast
|
643
|
+
*/
|
613
644
|
class ESToastModule {
|
614
645
|
|
615
646
|
make() {
|
@@ -687,198 +718,1287 @@ class ESToastModule {
|
|
687
718
|
}
|
688
719
|
}
|
689
720
|
|
690
|
-
var
|
691
|
-
|
692
|
-
/**
|
693
|
-
*
|
694
|
-
*/
|
695
|
-
|
696
|
-
class ESToast {
|
697
|
-
|
698
|
-
init() {
|
699
|
-
return Promise.resolve();
|
700
|
-
}
|
701
|
-
|
702
|
-
showToast(message) {
|
703
|
-
ToastModule.showToast(message);
|
704
|
-
}
|
705
|
-
|
706
|
-
showLongToast(message) {
|
707
|
-
ToastModule.showLongToast(message);
|
708
|
-
}
|
709
|
-
|
710
|
-
showShortToast(message) {
|
711
|
-
ToastModule.showShortToast(message);
|
712
|
-
}
|
713
|
-
}
|
714
|
-
|
715
|
-
var ESToast$1 = new ESToast();
|
721
|
+
var ESToastModule$1 = new ESToastModule();
|
716
722
|
|
717
723
|
/**
|
718
724
|
*
|
719
725
|
*/
|
720
|
-
class
|
726
|
+
class ESModule {
|
721
727
|
|
722
|
-
|
728
|
+
//---------------------------------ESModule--------------------------
|
729
|
+
getESDeviceInfo() {
|
723
730
|
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
724
|
-
'
|
731
|
+
'getDeviceInfo',);
|
725
732
|
}
|
726
733
|
|
727
|
-
|
728
|
-
return Vue.Native.callNativeWithPromise('
|
729
|
-
'
|
734
|
+
getESSDKInfo() {
|
735
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
736
|
+
'getESSDKInfo',);
|
730
737
|
}
|
731
738
|
|
732
|
-
|
733
|
-
return Vue.Native.callNativeWithPromise('
|
734
|
-
'
|
739
|
+
getESSDKVersionCode() {
|
740
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
741
|
+
'getESSDKVersionCode',);
|
735
742
|
}
|
736
743
|
|
737
|
-
|
738
|
-
return Vue.Native.callNativeWithPromise('
|
739
|
-
'
|
744
|
+
getESSDKVersionName() {
|
745
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
746
|
+
'getESSDKVersionName',);
|
740
747
|
}
|
741
748
|
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
/**
|
747
|
-
*
|
748
|
-
*/
|
749
|
-
class ESAppManager {
|
750
|
-
|
751
|
-
init() {
|
752
|
-
return Promise.resolve();
|
749
|
+
getESPackageName() {
|
750
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
751
|
+
'getESPackageName',);
|
753
752
|
}
|
754
753
|
|
755
|
-
|
756
|
-
return
|
754
|
+
getESMiniProgramPath() {
|
755
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
756
|
+
'getESMiniProgramPath',);
|
757
757
|
}
|
758
758
|
|
759
|
-
|
760
|
-
return
|
759
|
+
sendESNativeMapEventTop(eventName, mapParams) {
|
760
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
761
|
+
'sendESNativeMapEventTop', eventName, mapParams);
|
761
762
|
}
|
762
763
|
|
763
|
-
|
764
|
-
return
|
764
|
+
sendESNativeArrayEventTop(eventName, arrayParams) {
|
765
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
766
|
+
'sendESNativeArrayEventTop', eventName, arrayParams);
|
765
767
|
}
|
766
768
|
|
767
|
-
|
768
|
-
return
|
769
|
+
sendESNativeMapEventAll(eventName, mapParams) {
|
770
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
771
|
+
'sendESNativeMapEventAll', eventName, mapParams);
|
769
772
|
}
|
770
|
-
}
|
771
773
|
|
772
|
-
var ESAppManager$1 = new ESAppManager();
|
773
|
-
|
774
|
-
/**
|
775
|
-
*
|
776
|
-
*/
|
777
|
-
class ESAudioModule {
|
778
|
-
//------------------------通话音量------------------------
|
779
|
-
getStreamVoiceCallMaxVolume() {
|
780
|
-
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
781
|
-
'getStreamVoiceCallMaxVolume');
|
782
|
-
}
|
783
774
|
|
784
|
-
|
785
|
-
return Vue.Native.callNativeWithPromise('
|
786
|
-
'
|
775
|
+
sendESNativeArrayEventAll(eventName, arrayParams) {
|
776
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
777
|
+
'sendESNativeArrayEventAll', eventName, arrayParams);
|
787
778
|
}
|
788
779
|
|
789
|
-
|
790
|
-
getStreamSystemMaxVolume() {
|
791
|
-
return Vue.Native.callNativeWithPromise('AndroidAudioModule',
|
792
|
-
'getStreamSystemMaxVolume');
|
793
|
-
}
|
780
|
+
//---------------------------------EsNativeModule-------------------------
|
794
781
|
|
795
|
-
|
796
|
-
return Vue.Native.callNativeWithPromise('
|
797
|
-
'
|
782
|
+
getSupportSchemes() {
|
783
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
784
|
+
'getSupportSchemes',);
|
798
785
|
}
|
799
786
|
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
'getStreamRingMaxVolume');
|
787
|
+
getVisiblePageSize() {
|
788
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
789
|
+
'getVisiblePageSize',);
|
804
790
|
}
|
805
791
|
|
806
|
-
|
807
|
-
return Vue.Native.callNativeWithPromise('
|
808
|
-
'
|
792
|
+
launchESPageByArgs(args) {
|
793
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
794
|
+
'launchEsPage', {
|
795
|
+
args: args,
|
796
|
+
});
|
809
797
|
}
|
810
798
|
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
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
|
+
});
|
815
811
|
}
|
816
812
|
|
817
|
-
|
818
|
-
return Vue.Native.callNativeWithPromise('
|
819
|
-
'
|
813
|
+
launchNativeApp(paramsArray) {
|
814
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
815
|
+
'launchNativeApp', paramsArray);
|
820
816
|
}
|
821
817
|
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
'getStreamAlarmMaxVolume');
|
818
|
+
launchNativeAppWithPackage(pkg) {
|
819
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
820
|
+
'launchNativeAppWithPackage', pkg);
|
826
821
|
}
|
827
822
|
|
828
|
-
|
829
|
-
return Vue.Native.callNativeWithPromise('
|
830
|
-
'
|
823
|
+
startService(paramsArray) {
|
824
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
825
|
+
'startService', paramsArray);
|
831
826
|
}
|
832
827
|
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
'getStreamMaxVolume', streamType);
|
828
|
+
finish() {
|
829
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
830
|
+
'finish');
|
837
831
|
}
|
838
832
|
|
839
|
-
|
840
|
-
return Vue.Native.callNativeWithPromise('
|
841
|
-
'
|
833
|
+
finishAll() {
|
834
|
+
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
835
|
+
'finishAll');
|
842
836
|
}
|
843
837
|
|
844
|
-
|
845
|
-
adjustStreamVolume(streamType, adjust, flags) {
|
846
|
-
Vue.Native.callNative('AndroidAudioModule',
|
847
|
-
'adjustStreamVolume', [streamType, adjust, flags]);
|
848
|
-
}
|
838
|
+
//----------------------------组件和模块注册相关--------------------------------------------
|
849
839
|
|
850
|
-
|
851
|
-
Vue.Native.
|
852
|
-
'
|
840
|
+
isModuleRegistered(className) {
|
841
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
842
|
+
'isModuleRegistered', className);
|
853
843
|
}
|
854
844
|
|
855
|
-
|
856
|
-
Vue.Native.
|
857
|
-
'
|
845
|
+
isComponentRegistered(className) {
|
846
|
+
return Vue.Native.callNativeWithPromise('ESModule',
|
847
|
+
'isComponentRegistered', className);
|
858
848
|
}
|
859
849
|
}
|
860
850
|
|
861
|
-
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;
|
862
865
|
|
863
866
|
/**
|
864
867
|
*
|
865
868
|
*/
|
866
869
|
|
867
|
-
|
870
|
+
class ESManager {
|
868
871
|
|
869
|
-
|
872
|
+
_esSdkCid = null;
|
873
|
+
_esSdkVersionCode = null;
|
874
|
+
_esSdkVersionName = null;
|
875
|
+
_esSdkPackageName = null;
|
876
|
+
_esMiniProgramPath = null;
|
877
|
+
_esKitVersionCode = -1;
|
878
|
+
_esSdkSchemes = [];
|
879
|
+
_runtimePath = null;
|
870
880
|
|
871
|
-
|
872
|
-
_voiceCallVolume = -1;
|
881
|
+
_esSdkInfo = null;
|
873
882
|
|
874
|
-
_systemMaxVolume = -1;
|
875
|
-
_systemVolume = -1;
|
876
883
|
|
877
|
-
|
878
|
-
|
884
|
+
init() {
|
885
|
+
return Promise.resolve()
|
886
|
+
.then(() => this.initESInfoPromise())
|
887
|
+
}
|
879
888
|
|
880
|
-
|
881
|
-
|
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
|
+
}
|
917
|
+
|
918
|
+
getESSDKInfo() {
|
919
|
+
return this._esSdkInfo;
|
920
|
+
}
|
921
|
+
|
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;
|
882
2002
|
|
883
2003
|
_alarmMaxVolume = -1;
|
884
2004
|
_alarmVolume = -1;
|
@@ -993,221 +2113,92 @@ class ESAudioManager {
|
|
993
2113
|
.then((volume) => {
|
994
2114
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
995
2115
|
ESLog.d(TAG$7, '-----getStreamMusicMaxVolume--->>>>' + volume);
|
996
|
-
}
|
997
|
-
this._musicMaxVolume = volume;
|
998
|
-
});
|
999
|
-
}
|
1000
|
-
|
1001
|
-
get musicMaxVolume() {
|
1002
|
-
return this._musicMaxVolume;
|
1003
|
-
}
|
1004
|
-
|
1005
|
-
getStreamMusicVolume() {
|
1006
|
-
ESAudioModule$1.getStreamMusicVolume()
|
1007
|
-
.then((volume) => {
|
1008
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1009
|
-
ESLog.d(TAG$7, '-----getStreamMusicVolume--->>>>' + volume);
|
1010
|
-
}
|
1011
|
-
this._musicVolume = volume;
|
1012
|
-
});
|
1013
|
-
}
|
1014
|
-
|
1015
|
-
get musicVolume() {
|
1016
|
-
return this._musicVolume;
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
//------------------------提示音音量------------------------
|
1020
|
-
getStreamAlarmMaxVolume() {
|
1021
|
-
ESAudioModule$1.getStreamAlarmMaxVolume()
|
1022
|
-
.then((volume) => {
|
1023
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1024
|
-
ESLog.d(TAG$7, '-----getStreamAlarmMaxVolume--->>>>' + volume);
|
1025
|
-
}
|
1026
|
-
this._alarmMaxVolume = volume;
|
1027
|
-
});
|
1028
|
-
}
|
1029
|
-
|
1030
|
-
get alarmMaxVolume() {
|
1031
|
-
return this._alarmMaxVolume;
|
1032
|
-
}
|
1033
|
-
|
1034
|
-
getStreamAlarmVolume() {
|
1035
|
-
ESAudioModule$1.getStreamAlarmVolume()
|
1036
|
-
.then((volume) => {
|
1037
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1038
|
-
ESLog.d(TAG$7, '-----getStreamAlarmVolume--->>>>' + volume);
|
1039
|
-
}
|
1040
|
-
this._alarmVolume = volume;
|
1041
|
-
});
|
1042
|
-
}
|
1043
|
-
|
1044
|
-
get alarmVolume() {
|
1045
|
-
return this._alarmVolume;
|
1046
|
-
}
|
1047
|
-
|
1048
|
-
//------------------------音量------------------------
|
1049
|
-
getStreamMaxVolume(streamType) {
|
1050
|
-
ESAudioModule$1.getStreamMaxVolume(streamType)
|
1051
|
-
.then((volume) => {
|
1052
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1053
|
-
ESLog.d(TAG$7, streamType + '-----getStreamMaxVolume--->>>>' + volume);
|
1054
|
-
}
|
1055
|
-
});
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
getStreamVolume(streamType) {
|
1059
|
-
ESAudioModule$1.getStreamVolume(streamType)
|
1060
|
-
.then((volume) => {
|
1061
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
1062
|
-
ESLog.d(TAG$7, streamType + '-----getStreamVolume--->>>>' + volume);
|
1063
|
-
}
|
1064
|
-
});
|
1065
|
-
}
|
1066
|
-
|
1067
|
-
//------------------------调整音量------------------------
|
1068
|
-
adjustStreamVolume(streamType, adjust, flags) {
|
1069
|
-
ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
|
1070
|
-
}
|
1071
|
-
|
1072
|
-
setStreamVolume(streamType, index, flags) {
|
1073
|
-
ESAudioModule$1.setStreamVolume(streamType, index, flags);
|
1074
|
-
}
|
1075
|
-
|
1076
|
-
setStreamMute(streamType, state) {
|
1077
|
-
ESAudioModule$1.setStreamMute(streamType, state);
|
1078
|
-
}
|
1079
|
-
}
|
1080
|
-
|
1081
|
-
var ESAudioManager$1 = new ESAudioManager();
|
1082
|
-
|
1083
|
-
/**
|
1084
|
-
*
|
1085
|
-
*/
|
1086
|
-
class ESModule {
|
1087
|
-
|
1088
|
-
//---------------------------------ESModule--------------------------
|
1089
|
-
getESDeviceInfo() {
|
1090
|
-
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1091
|
-
'getDeviceInfo',);
|
1092
|
-
}
|
1093
|
-
|
1094
|
-
getESSDKInfo() {
|
1095
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1096
|
-
'getESSDKInfo',);
|
1097
|
-
}
|
1098
|
-
|
1099
|
-
getESSDKVersionCode() {
|
1100
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1101
|
-
'getESSDKVersionCode',);
|
1102
|
-
}
|
1103
|
-
|
1104
|
-
getESSDKVersionName() {
|
1105
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1106
|
-
'getESSDKVersionName',);
|
1107
|
-
}
|
1108
|
-
|
1109
|
-
getESPackageName() {
|
1110
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1111
|
-
'getESPackageName',);
|
1112
|
-
}
|
1113
|
-
|
1114
|
-
getESMiniProgramPath() {
|
1115
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1116
|
-
'getESMiniProgramPath',);
|
1117
|
-
}
|
1118
|
-
|
1119
|
-
sendESNativeMapEventTop(eventName, mapParams) {
|
1120
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1121
|
-
'sendESNativeMapEventTop', eventName, mapParams);
|
1122
|
-
}
|
1123
|
-
|
1124
|
-
sendESNativeArrayEventTop(eventName, arrayParams) {
|
1125
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1126
|
-
'sendESNativeArrayEventTop', eventName, arrayParams);
|
1127
|
-
}
|
1128
|
-
|
1129
|
-
sendESNativeMapEventAll(eventName, mapParams) {
|
1130
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1131
|
-
'sendESNativeMapEventAll', eventName, mapParams);
|
1132
|
-
}
|
1133
|
-
|
1134
|
-
|
1135
|
-
sendESNativeArrayEventAll(eventName, arrayParams) {
|
1136
|
-
return Vue.Native.callNativeWithPromise('ESModule',
|
1137
|
-
'sendESNativeArrayEventAll', eventName, arrayParams);
|
2116
|
+
}
|
2117
|
+
this._musicMaxVolume = volume;
|
2118
|
+
});
|
1138
2119
|
}
|
1139
2120
|
|
1140
|
-
|
1141
|
-
|
1142
|
-
getSupportSchemes() {
|
1143
|
-
return Vue.Native.callNativeWithPromise('EsNativeModule',
|
1144
|
-
'getSupportSchemes',);
|
2121
|
+
get musicMaxVolume() {
|
2122
|
+
return this._musicMaxVolume;
|
1145
2123
|
}
|
1146
2124
|
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
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
|
+
});
|
1150
2133
|
}
|
1151
2134
|
|
1152
|
-
|
1153
|
-
return
|
1154
|
-
'launchEsPage', {
|
1155
|
-
args: args,
|
1156
|
-
});
|
2135
|
+
get musicVolume() {
|
2136
|
+
return this._musicVolume;
|
1157
2137
|
}
|
1158
2138
|
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
backgroundColor: params.backgroundColor,
|
1168
|
-
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;
|
1169
2147
|
});
|
1170
2148
|
}
|
1171
2149
|
|
1172
|
-
|
1173
|
-
return
|
1174
|
-
'launchNativeApp', paramsArray);
|
2150
|
+
get alarmMaxVolume() {
|
2151
|
+
return this._alarmMaxVolume;
|
1175
2152
|
}
|
1176
2153
|
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
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
|
+
});
|
1180
2162
|
}
|
1181
2163
|
|
1182
|
-
|
1183
|
-
return
|
1184
|
-
'startService', paramsArray);
|
2164
|
+
get alarmVolume() {
|
2165
|
+
return this._alarmVolume;
|
1185
2166
|
}
|
1186
2167
|
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
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
|
+
});
|
1190
2176
|
}
|
1191
2177
|
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
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
|
+
});
|
1195
2185
|
}
|
1196
2186
|
|
1197
|
-
|
2187
|
+
//------------------------调整音量------------------------
|
2188
|
+
adjustStreamVolume(streamType, adjust, flags) {
|
2189
|
+
ESAudioModule$1.adjustStreamVolume(streamType, adjust, flags);
|
2190
|
+
}
|
1198
2191
|
|
1199
|
-
|
1200
|
-
|
1201
|
-
'isModuleRegistered', className);
|
2192
|
+
setStreamVolume(streamType, index, flags) {
|
2193
|
+
ESAudioModule$1.setStreamVolume(streamType, index, flags);
|
1202
2194
|
}
|
1203
2195
|
|
1204
|
-
|
1205
|
-
|
1206
|
-
'isComponentRegistered', className);
|
2196
|
+
setStreamMute(streamType, state) {
|
2197
|
+
ESAudioModule$1.setStreamMute(streamType, state);
|
1207
2198
|
}
|
1208
2199
|
}
|
1209
2200
|
|
1210
|
-
var
|
2201
|
+
var ESAudioManager$1 = new ESAudioManager();
|
1211
2202
|
|
1212
2203
|
/**
|
1213
2204
|
*
|
@@ -1440,165 +2431,20 @@ class ESFileModule {
|
|
1440
2431
|
);
|
1441
2432
|
}
|
1442
2433
|
|
1443
|
-
renameTo(fileId, renameFileId) {
|
1444
|
-
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
1445
|
-
'canExecute', {id: fileId, renameFileId: renameFileId}
|
1446
|
-
);
|
1447
|
-
}
|
1448
|
-
|
1449
|
-
close(fileId) {
|
1450
|
-
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
1451
|
-
'close', {id: fileId}
|
1452
|
-
);
|
1453
|
-
}
|
1454
|
-
}
|
1455
|
-
|
1456
|
-
var ESFileModule$1 = new ESFileModule();
|
1457
|
-
|
1458
|
-
const ES_SDK_VERSION_20 = -1;
|
1459
|
-
const ES_SDK_VERSION_21 = 2.1;
|
1460
|
-
const ES_SDK_VERSION_22 = 2.2;
|
1461
|
-
const ES_SDK_VERSION_22_1 = 2.21;
|
1462
|
-
const ES_SDK_VERSION_23 = 2.3;
|
1463
|
-
const ES_SDK_VERSION_24 = 2.4;
|
1464
|
-
const ES_SDK_VERSION_25 = 2.5;
|
1465
|
-
const ES_SDK_VERSION_26 = 2.6;
|
1466
|
-
const ES_SDK_VERSION_27 = 2.7;
|
1467
|
-
const ES_SDK_VERSION_28 = 2.8;
|
1468
|
-
const ES_SDK_VERSION_29 = 2.9;
|
1469
|
-
const ES_SDK_VERSION_30 = 3.0;
|
1470
|
-
|
1471
|
-
/**
|
1472
|
-
*
|
1473
|
-
*/
|
1474
|
-
|
1475
|
-
class ESManager {
|
1476
|
-
|
1477
|
-
_esSdkCid = null;
|
1478
|
-
_esSdkVersionCode = null;
|
1479
|
-
_esSdkVersionName = null;
|
1480
|
-
_esSdkPackageName = null;
|
1481
|
-
_esMiniProgramPath = null;
|
1482
|
-
_esKitVersionCode = -1;
|
1483
|
-
_esSdkSchemes = [];
|
1484
|
-
_runtimePath = null;
|
1485
|
-
|
1486
|
-
_esSdkInfo = null;
|
1487
|
-
|
1488
|
-
|
1489
|
-
init() {
|
1490
|
-
return Promise.resolve()
|
1491
|
-
.then(() => this.initESInfoPromise())
|
1492
|
-
}
|
1493
|
-
|
1494
|
-
initESInfoPromise() {
|
1495
|
-
return ESModule$1.getESSDKInfo()
|
1496
|
-
.then((result) => {
|
1497
|
-
this._esSdkInfo = result;
|
1498
|
-
if (result) {
|
1499
|
-
this._esSdkVersionCode = result.versionCode;
|
1500
|
-
this._esSdkVersionName = result.versionName;
|
1501
|
-
this._esSdkPackageName = result.packageName;
|
1502
|
-
this._esMiniProgramPath = result.miniProgramPath;
|
1503
|
-
this._esSdkSchemes = result.schemes;
|
1504
|
-
if (result.eskit_ver_code) {
|
1505
|
-
this._esKitVersionCode = result.eskit_ver_code;
|
1506
|
-
}
|
1507
|
-
//
|
1508
|
-
this._runtimePath = result.runtimePath;
|
1509
|
-
}
|
1510
|
-
return ESModule$1.getESDeviceInfo();
|
1511
|
-
}
|
1512
|
-
)
|
1513
|
-
//获取cid
|
1514
|
-
.then((result) => {
|
1515
|
-
if (result) {
|
1516
|
-
this._esSdkCid = result.cid;
|
1517
|
-
}
|
1518
|
-
return Promise.resolve();
|
1519
|
-
}
|
1520
|
-
);
|
1521
|
-
}
|
1522
|
-
|
1523
|
-
getESSDKInfo() {
|
1524
|
-
return this._esSdkInfo;
|
1525
|
-
}
|
1526
|
-
|
1527
|
-
getESSDKCid() {
|
1528
|
-
return this._esSdkCid;
|
1529
|
-
}
|
1530
|
-
|
1531
|
-
getESSDKVersionCode() {
|
1532
|
-
return this._esKitVersionCode;
|
1533
|
-
}
|
1534
|
-
|
1535
|
-
getESSDKVersionName() {
|
1536
|
-
return this._esSdkVersionName;
|
1537
|
-
}
|
1538
|
-
|
1539
|
-
getESPackageName() {
|
1540
|
-
return this._esSdkPackageName;
|
1541
|
-
}
|
1542
|
-
|
1543
|
-
getESVersionCode() {
|
1544
|
-
return this._esSdkVersionCode;
|
1545
|
-
}
|
1546
|
-
|
1547
|
-
getESVersionName() {
|
1548
|
-
return this._esSdkVersionName;
|
1549
|
-
}
|
1550
|
-
|
1551
|
-
/**
|
1552
|
-
* 获取EsApp路径, 用于文件存储管理
|
1553
|
-
* @return
|
1554
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
1555
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
1556
|
-
*/
|
1557
|
-
getESMiniProgramPath() {
|
1558
|
-
return this._esMiniProgramPath;
|
1559
|
-
}
|
1560
|
-
|
1561
|
-
/**
|
1562
|
-
* 获取EsApp路径, 用于文件存储管理
|
1563
|
-
* @return
|
1564
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/files
|
1565
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/files
|
1566
|
-
*/
|
1567
|
-
getESAppPath() {
|
1568
|
-
return this._esMiniProgramPath;
|
1569
|
-
}
|
1570
|
-
|
1571
|
-
/**
|
1572
|
-
* 获取EsApp运行时路径, 通常用于获取代码包里的assets
|
1573
|
-
* @return
|
1574
|
-
* /data/data/APK包名/app_rpk/apps/小程序包名/版本号/android
|
1575
|
-
* 示例:/data/data/com.extscreen.runtime/app_rpk/apps/es.com.baduanjin.tv/2.2.2203/android
|
1576
|
-
*/
|
1577
|
-
getESAppRuntimePath() {
|
1578
|
-
if (this.getESSDKVersionCode() >= ES_SDK_VERSION_22) {
|
1579
|
-
return this._runtimePath;
|
1580
|
-
}
|
1581
|
-
//
|
1582
|
-
else {
|
1583
|
-
return this._esMiniProgramPath;
|
1584
|
-
}
|
1585
|
-
}
|
1586
|
-
|
1587
|
-
getESSDKSupportSchemes() {
|
1588
|
-
return this._esSdkSchemes;
|
1589
|
-
}
|
1590
|
-
|
1591
|
-
//----------------------------组件和模块注册相关--------------------------------------------
|
1592
|
-
isModuleRegistered(className) {
|
1593
|
-
return ESModule$1.isModuleRegistered(className);
|
2434
|
+
renameTo(fileId, renameFileId) {
|
2435
|
+
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
2436
|
+
'canExecute', {id: fileId, renameFileId: renameFileId}
|
2437
|
+
);
|
1594
2438
|
}
|
1595
2439
|
|
1596
|
-
|
1597
|
-
return
|
2440
|
+
close(fileId) {
|
2441
|
+
return Vue.Native.callNativeWithPromise('AndroidFileModule',
|
2442
|
+
'close', {id: fileId}
|
2443
|
+
);
|
1598
2444
|
}
|
1599
2445
|
}
|
1600
2446
|
|
1601
|
-
var
|
2447
|
+
var ESFileModule$1 = new ESFileModule();
|
1602
2448
|
|
1603
2449
|
/**
|
1604
2450
|
*
|
@@ -1888,73 +2734,6 @@ class ESPowerManager {
|
|
1888
2734
|
|
1889
2735
|
var ESPowerManager$1 = new ESPowerManager();
|
1890
2736
|
|
1891
|
-
/**
|
1892
|
-
*
|
1893
|
-
*/
|
1894
|
-
|
1895
|
-
class ESSharedPreferencesModule {
|
1896
|
-
|
1897
|
-
initSharedPreferences(name) {
|
1898
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1899
|
-
'initSharedPreferences', name);
|
1900
|
-
}
|
1901
|
-
|
1902
|
-
initESSharedPreferences(name) {
|
1903
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1904
|
-
'initESSharedPreferences', name);
|
1905
|
-
}
|
1906
|
-
|
1907
|
-
//----------------------------------------------------
|
1908
|
-
getBoolean(key, defValue) {
|
1909
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1910
|
-
'getBoolean', key, defValue);
|
1911
|
-
}
|
1912
|
-
|
1913
|
-
putBoolean(key, value) {
|
1914
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1915
|
-
'putBoolean', key, value);
|
1916
|
-
}
|
1917
|
-
|
1918
|
-
//----------------------------------------------------
|
1919
|
-
|
1920
|
-
getInt(key, defValue) {
|
1921
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1922
|
-
'getInt', key, defValue);
|
1923
|
-
}
|
1924
|
-
|
1925
|
-
putInt(key, value) {
|
1926
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1927
|
-
'putInt', key, value);
|
1928
|
-
}
|
1929
|
-
|
1930
|
-
//----------------------------------------------------
|
1931
|
-
|
1932
|
-
getLong(key, defValue) {
|
1933
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1934
|
-
'getLong', key, defValue);
|
1935
|
-
}
|
1936
|
-
|
1937
|
-
putLong(key, value) {
|
1938
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1939
|
-
'putLong', key, value);
|
1940
|
-
}
|
1941
|
-
|
1942
|
-
//----------------------------------------------------
|
1943
|
-
getString(key, defValue) {
|
1944
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1945
|
-
'getString', key, defValue);
|
1946
|
-
}
|
1947
|
-
|
1948
|
-
putString(key, value) {
|
1949
|
-
return Vue.Native.callNativeWithPromise('AndroidSharedPreferencesModule',
|
1950
|
-
'putString', key, value);
|
1951
|
-
}
|
1952
|
-
|
1953
|
-
//----------------------------------------------------
|
1954
|
-
}
|
1955
|
-
|
1956
|
-
var ESSharedPreferencesModule$1 = new ESSharedPreferencesModule();
|
1957
|
-
|
1958
2737
|
/**
|
1959
2738
|
*
|
1960
2739
|
*/
|
@@ -2374,16 +3153,6 @@ class ESUsbDeviceManager {
|
|
2374
3153
|
|
2375
3154
|
var ESUsbDeviceManager$1 = new ESUsbDeviceManager();
|
2376
3155
|
|
2377
|
-
let ESApp;
|
2378
|
-
|
2379
|
-
function setESApp(app) {
|
2380
|
-
ESApp = app;
|
2381
|
-
}
|
2382
|
-
|
2383
|
-
function getESApp() {
|
2384
|
-
return ESApp;
|
2385
|
-
}
|
2386
|
-
|
2387
3156
|
var ESUsbDevice = {
|
2388
3157
|
mounted() {
|
2389
3158
|
ESApp.$on('onUsbDeviceAttached', this.onUsbDeviceAttached);
|
@@ -2534,395 +3303,130 @@ class ESMMapManager {
|
|
2534
3303
|
}
|
2535
3304
|
|
2536
3305
|
//
|
2537
|
-
getString(key, defValue) {
|
2538
|
-
return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
|
2539
|
-
}
|
2540
|
-
|
2541
|
-
putString(key, value, mode) {
|
2542
|
-
return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
|
2543
|
-
}
|
2544
|
-
|
2545
|
-
//
|
2546
|
-
getArray(key, defValue) {
|
2547
|
-
return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
|
2548
|
-
}
|
2549
|
-
|
2550
|
-
putArray(key, value, mode) {
|
2551
|
-
return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
|
2552
|
-
}
|
2553
|
-
|
2554
|
-
//
|
2555
|
-
getMap(key, defValue) {
|
2556
|
-
return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
|
2557
|
-
}
|
2558
|
-
|
2559
|
-
putMap(key, value, mode) {
|
2560
|
-
return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
|
2561
|
-
}
|
2562
|
-
|
2563
|
-
//----------------------------操作其他APP的共享内存-----------------------------------
|
2564
|
-
//
|
2565
|
-
getSharedBoolean(packageName, key, defValue) {
|
2566
|
-
return ESMMapModule$1.getBoolean(packageName, key, defValue);
|
2567
|
-
}
|
2568
|
-
|
2569
|
-
putSharedBoolean(packageName, key, value) {
|
2570
|
-
return ESMMapModule$1.putBoolean(packageName, key, value, -1);
|
2571
|
-
}
|
2572
|
-
|
2573
|
-
//
|
2574
|
-
getSharedInt(packageName, key, defValue) {
|
2575
|
-
return ESMMapModule$1.getInt(packageName, key, defValue);
|
2576
|
-
}
|
2577
|
-
|
2578
|
-
putSharedInt(packageName, key, value) {
|
2579
|
-
return ESMMapModule$1.putInt(packageName, key, value, -1);
|
2580
|
-
}
|
2581
|
-
|
2582
|
-
//
|
2583
|
-
getSharedLong(packageName, key, defValue) {
|
2584
|
-
return ESMMapModule$1.getLong(packageName, key, defValue);
|
2585
|
-
}
|
2586
|
-
|
2587
|
-
putSharedLong(packageName, key, value) {
|
2588
|
-
return ESMMapModule$1.putLong(packageName, key, value, -1);
|
2589
|
-
}
|
2590
|
-
|
2591
|
-
//
|
2592
|
-
getSharedString(packageName, key, defValue) {
|
2593
|
-
return ESMMapModule$1.getString(packageName, key, defValue);
|
2594
|
-
}
|
2595
|
-
|
2596
|
-
putSharedString(packageName, key, value) {
|
2597
|
-
return ESMMapModule$1.putString(packageName, key, value, -1);
|
2598
|
-
}
|
2599
|
-
|
2600
|
-
//
|
2601
|
-
getSharedArray(packageName, key, defValue) {
|
2602
|
-
return ESMMapModule$1.getArray(packageName, key, defValue);
|
2603
|
-
}
|
2604
|
-
|
2605
|
-
putSharedArray(packageName, key, value) {
|
2606
|
-
return ESMMapModule$1.putArray(packageName, key, value, -1);
|
2607
|
-
}
|
2608
|
-
|
2609
|
-
//
|
2610
|
-
getSharedMap(packageName, key, defValue) {
|
2611
|
-
return ESMMapModule$1.getMap(packageName, key, defValue);
|
2612
|
-
}
|
2613
|
-
|
2614
|
-
putSharedMap(packageName, key, value) {
|
2615
|
-
return ESMMapModule$1.putMap(packageName, key, value, -1);
|
2616
|
-
}
|
2617
|
-
}
|
2618
|
-
|
2619
|
-
var ESMMapManager$1 = new ESMMapManager();
|
2620
|
-
|
2621
|
-
/**
|
2622
|
-
*
|
2623
|
-
*/
|
2624
|
-
|
2625
|
-
class ESDisplayManager {
|
2626
|
-
|
2627
|
-
_screenWidth = 1920;
|
2628
|
-
_screenHeight = 1080;
|
2629
|
-
_scale = 1;
|
2630
|
-
|
2631
|
-
init() {
|
2632
|
-
return new Promise((resolve, reject) => {
|
2633
|
-
try {
|
2634
|
-
this._screenWidth = ESDeviceManager$1.getScreenWidth();
|
2635
|
-
this._screenHeight = ESDeviceManager$1.getScreenHeight();
|
2636
|
-
this._scale = this._screenHeight / 1080;
|
2637
|
-
} catch (e) {
|
2638
|
-
}
|
2639
|
-
resolve(true);
|
2640
|
-
});
|
2641
|
-
}
|
2642
|
-
|
2643
|
-
getDisplayScale() {
|
2644
|
-
return this._scale;
|
2645
|
-
}
|
2646
|
-
|
2647
|
-
getDisplaySize(size) {
|
2648
|
-
return this._scale * size;
|
2649
|
-
}
|
2650
|
-
|
2651
|
-
getScreenWidth() {
|
2652
|
-
return this._screenWidth;
|
2653
|
-
}
|
2654
|
-
|
2655
|
-
getScreenHeight() {
|
2656
|
-
return this._screenHeight;
|
2657
|
-
}
|
2658
|
-
}
|
2659
|
-
|
2660
|
-
var ESDisplayManager$1 = new ESDisplayManager();
|
2661
|
-
|
2662
|
-
/**
|
2663
|
-
*
|
2664
|
-
*/
|
2665
|
-
|
2666
|
-
|
2667
|
-
class ESLaunchManager {
|
2668
|
-
|
2669
|
-
_ESRouter = null;
|
2670
|
-
_ESRouterEnabled = true;
|
2671
|
-
_ESPageRouterViewSupported = false;
|
2672
|
-
_launchLimit = 10;
|
2673
|
-
|
2674
|
-
_routeListener = null;
|
2675
|
-
|
2676
|
-
_routeListenerList = [];
|
2677
|
-
|
2678
|
-
init(router) {
|
2679
|
-
try {
|
2680
|
-
this._ESRouter = router;
|
2681
|
-
this._ESPageRouterViewSupported = this.isESPageRouterViewSupported();
|
2682
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2683
|
-
ESLog.d('ESRouter', '#------init--------->>' + '\n' +
|
2684
|
-
'_ESPageRouterViewSupported: ' + this._ESPageRouterViewSupported + '\n' +
|
2685
|
-
'_ESRouter: ' + this._ESRouter
|
2686
|
-
);
|
2687
|
-
}
|
2688
|
-
} catch (e) {
|
2689
|
-
}
|
2690
|
-
//
|
2691
|
-
this._setESPageRouterViewSupported(this._ESPageRouterViewSupported);
|
2692
|
-
return Promise.resolve();
|
2693
|
-
}
|
2694
|
-
|
2695
|
-
//----------------------ESPageRouterView--------------------------
|
2696
|
-
_setESPageRouterViewSupported(enabled) {
|
2697
|
-
this._ESPageRouterViewSupported = enabled;
|
2698
|
-
try {
|
2699
|
-
if (this._ESRouter) {
|
2700
|
-
this._ESRouter.setESPageRouterViewSupported(enabled);
|
2701
|
-
}
|
2702
|
-
} catch (e) {
|
2703
|
-
}
|
3306
|
+
getString(key, defValue) {
|
3307
|
+
return ESMMapModule$1.getString(this.getPackageName(), key, defValue);
|
2704
3308
|
}
|
2705
3309
|
|
2706
|
-
|
2707
|
-
return
|
3310
|
+
putString(key, value, mode) {
|
3311
|
+
return ESMMapModule$1.putString(this.getPackageName(), key, value, mode);
|
2708
3312
|
}
|
2709
3313
|
|
2710
|
-
|
2711
|
-
|
3314
|
+
//
|
3315
|
+
getArray(key, defValue) {
|
3316
|
+
return ESMMapModule$1.getArray(this.getPackageName(), key, defValue);
|
2712
3317
|
}
|
2713
3318
|
|
2714
|
-
|
2715
|
-
|
2716
|
-
isESRouterEnabled() {
|
2717
|
-
return this._ESRouterEnabled;
|
3319
|
+
putArray(key, value, mode) {
|
3320
|
+
return ESMMapModule$1.putArray(this.getPackageName(), key, value, mode);
|
2718
3321
|
}
|
2719
3322
|
|
2720
|
-
|
2721
|
-
|
3323
|
+
//
|
3324
|
+
getMap(key, defValue) {
|
3325
|
+
return ESMMapModule$1.getMap(this.getPackageName(), key, defValue);
|
2722
3326
|
}
|
2723
3327
|
|
2724
|
-
|
2725
|
-
this.
|
2726
|
-
if (this._ESRouter) {
|
2727
|
-
try {
|
2728
|
-
this._ESRouter.setRouteLimit(limit);
|
2729
|
-
} catch (e) {
|
2730
|
-
}
|
2731
|
-
}
|
3328
|
+
putMap(key, value, mode) {
|
3329
|
+
return ESMMapModule$1.putMap(this.getPackageName(), key, value, mode);
|
2732
3330
|
}
|
2733
3331
|
|
2734
|
-
|
3332
|
+
//----------------------------操作其他APP的共享内存-----------------------------------
|
3333
|
+
//
|
3334
|
+
getSharedBoolean(packageName, key, defValue) {
|
3335
|
+
return ESMMapModule$1.getBoolean(packageName, key, defValue);
|
3336
|
+
}
|
2735
3337
|
|
2736
|
-
|
2737
|
-
|
2738
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2739
|
-
let l = this._routeListenerList[i];
|
2740
|
-
if (l === routeListener) {
|
2741
|
-
return;
|
2742
|
-
}
|
2743
|
-
}
|
2744
|
-
}
|
2745
|
-
this._routeListenerList.push(routeListener);
|
3338
|
+
putSharedBoolean(packageName, key, value) {
|
3339
|
+
return ESMMapModule$1.putBoolean(packageName, key, value, -1);
|
2746
3340
|
}
|
2747
3341
|
|
2748
|
-
|
2749
|
-
|
2750
|
-
|
2751
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2752
|
-
let l = this._routeListenerList[i];
|
2753
|
-
if (l === routeListener) {
|
2754
|
-
index = i;
|
2755
|
-
}
|
2756
|
-
}
|
2757
|
-
if (index > -1) {
|
2758
|
-
this._routeListenerList.splice(index, 1);
|
2759
|
-
}
|
2760
|
-
}
|
3342
|
+
//
|
3343
|
+
getSharedInt(packageName, key, defValue) {
|
3344
|
+
return ESMMapModule$1.getInt(packageName, key, defValue);
|
2761
3345
|
}
|
2762
3346
|
|
2763
|
-
|
2764
|
-
|
2765
|
-
if (this._routeListenerList && this._routeListenerList.length > 0) {
|
2766
|
-
for (let i = 0; i < this._routeListenerList.length; i++) {
|
2767
|
-
let listener = this._routeListenerList[i];
|
2768
|
-
if (listener && this.isFunction(listener)) {
|
2769
|
-
try {
|
2770
|
-
listener(url, params);
|
2771
|
-
} catch (e) {
|
2772
|
-
}
|
2773
|
-
}
|
2774
|
-
}
|
2775
|
-
}
|
2776
|
-
} catch (e) {
|
2777
|
-
}
|
3347
|
+
putSharedInt(packageName, key, value) {
|
3348
|
+
return ESMMapModule$1.putInt(packageName, key, value, -1);
|
2778
3349
|
}
|
2779
3350
|
|
2780
|
-
|
2781
|
-
|
2782
|
-
|
3351
|
+
//
|
3352
|
+
getSharedLong(packageName, key, defValue) {
|
3353
|
+
return ESMMapModule$1.getLong(packageName, key, defValue);
|
2783
3354
|
}
|
2784
3355
|
|
2785
|
-
|
2786
|
-
|
2787
|
-
|
2788
|
-
if (this._routeListener && this.isFunction(this._routeListener)) {
|
2789
|
-
this._routeListener(url, params);
|
2790
|
-
}
|
2791
|
-
} catch (e) {
|
3356
|
+
putSharedLong(packageName, key, value) {
|
3357
|
+
return ESMMapModule$1.putLong(packageName, key, value, -1);
|
3358
|
+
}
|
2792
3359
|
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
2796
|
-
this._notifyRouteListenerList(url, params);
|
2797
|
-
} catch (e) {
|
2798
|
-
}
|
3360
|
+
//
|
3361
|
+
getSharedString(packageName, key, defValue) {
|
3362
|
+
return ESMMapModule$1.getString(packageName, key, defValue);
|
2799
3363
|
}
|
2800
3364
|
|
2801
|
-
|
2802
|
-
return
|
3365
|
+
putSharedString(packageName, key, value) {
|
3366
|
+
return ESMMapModule$1.putString(packageName, key, value, -1);
|
2803
3367
|
}
|
2804
3368
|
|
2805
|
-
|
2806
|
-
|
2807
|
-
return
|
3369
|
+
//
|
3370
|
+
getSharedArray(packageName, key, defValue) {
|
3371
|
+
return ESMMapModule$1.getArray(packageName, key, defValue);
|
2808
3372
|
}
|
2809
3373
|
|
2810
|
-
|
2811
|
-
return
|
2812
|
-
args: {
|
2813
|
-
url: intent.url,
|
2814
|
-
params: intent.params
|
2815
|
-
},
|
2816
|
-
flags: intent.flags,
|
2817
|
-
pageTag: intent.pageTag,
|
2818
|
-
pageLimit: intent.pageLimit,
|
2819
|
-
backgroundColor: intent.backgroundColor,
|
2820
|
-
//
|
2821
|
-
pkg: intent.packageName,
|
2822
|
-
splash: intent.splash,
|
2823
|
-
});
|
3374
|
+
putSharedArray(packageName, key, value) {
|
3375
|
+
return ESMMapModule$1.putArray(packageName, key, value, -1);
|
2824
3376
|
}
|
2825
3377
|
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
3378
|
+
//
|
3379
|
+
getSharedMap(packageName, key, defValue) {
|
3380
|
+
return ESMMapModule$1.getMap(packageName, key, defValue);
|
3381
|
+
}
|
2829
3382
|
|
2830
|
-
|
2831
|
-
|
2832
|
-
&& this._ESRouter) {
|
2833
|
-
//
|
2834
|
-
this._notifyListeners(url, params);
|
2835
|
-
//
|
2836
|
-
this._ESRouter.push({
|
2837
|
-
name: url,
|
2838
|
-
params: params,
|
2839
|
-
});
|
2840
|
-
}
|
2841
|
-
//
|
2842
|
-
else {
|
2843
|
-
//
|
2844
|
-
this._notifyListeners(url, params);
|
2845
|
-
//
|
2846
|
-
this.launchNativePage(intent);
|
2847
|
-
}
|
3383
|
+
putSharedMap(packageName, key, value) {
|
3384
|
+
return ESMMapModule$1.putMap(packageName, key, value, -1);
|
2848
3385
|
}
|
3386
|
+
}
|
2849
3387
|
|
2850
|
-
|
2851
|
-
let url = intent.url;
|
2852
|
-
let params = intent.params;
|
3388
|
+
var ESMMapManager$1 = new ESMMapManager();
|
2853
3389
|
|
2854
|
-
|
2855
|
-
|
2856
|
-
|
2857
|
-
this._ESRouter.back();
|
2858
|
-
//
|
2859
|
-
this._notifyListeners(url, params);
|
3390
|
+
/**
|
3391
|
+
*
|
3392
|
+
*/
|
2860
3393
|
|
2861
|
-
|
2862
|
-
name: intent.url,
|
2863
|
-
params: intent.params,
|
2864
|
-
});
|
2865
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2866
|
-
ESLog.d('ESRouter', '#----launchAfterFinishESPage--vue--back&&push----->>>>>');
|
2867
|
-
}
|
2868
|
-
}
|
2869
|
-
//
|
2870
|
-
else {
|
2871
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2872
|
-
ESLog.d('ESRouter', '#----launchAfterFinishESPage--native--finish&&launch----->>>>>');
|
2873
|
-
}
|
2874
|
-
//1.finish
|
2875
|
-
ESModule$1.finish();
|
2876
|
-
//
|
2877
|
-
this._notifyListeners(url, params);
|
3394
|
+
class ESDisplayManager {
|
2878
3395
|
|
2879
|
-
|
2880
|
-
|
2881
|
-
|
2882
|
-
}
|
3396
|
+
_screenWidth = 1920;
|
3397
|
+
_screenHeight = 1080;
|
3398
|
+
_scale = 1;
|
2883
3399
|
|
2884
|
-
|
2885
|
-
|
2886
|
-
|
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
|
+
}
|
2887
3411
|
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
3412
|
+
getDisplayScale() {
|
3413
|
+
return this._scale;
|
3414
|
+
}
|
2891
3415
|
|
2892
|
-
|
2893
|
-
|
2894
|
-
&& this.isESRouterSupported()
|
2895
|
-
&& this._ESRouter
|
2896
|
-
&& this._ESRouter.back()) {
|
2897
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2898
|
-
ESLog.d('ESRouter', '#----finishESPage---ESRouter.back----->>>>>');
|
2899
|
-
}
|
2900
|
-
//
|
3416
|
+
getDisplaySize(size) {
|
3417
|
+
return this._scale * size;
|
2901
3418
|
}
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
ESLog.d('ESRouter', '#----finishESPage---ESModule.finish----->>>>>');
|
2906
|
-
}
|
2907
|
-
ESModule$1.finish();
|
3419
|
+
|
3420
|
+
getScreenWidth() {
|
3421
|
+
return this._screenWidth;
|
2908
3422
|
}
|
2909
|
-
}
|
2910
3423
|
|
2911
|
-
|
2912
|
-
|
2913
|
-
*/
|
2914
|
-
getCurrentESPage() {
|
2915
|
-
if (this._ESRouter && this._ESRouter.currentRoute) {
|
2916
|
-
return {
|
2917
|
-
url: this._ESRouter.currentRoute.name,
|
2918
|
-
params: this._ESRouter.currentRoute.params,
|
2919
|
-
};
|
3424
|
+
getScreenHeight() {
|
3425
|
+
return this._screenHeight;
|
2920
3426
|
}
|
2921
|
-
return null;
|
2922
|
-
}
|
2923
3427
|
}
|
2924
3428
|
|
2925
|
-
var
|
3429
|
+
var ESDisplayManager$1 = new ESDisplayManager();
|
2926
3430
|
|
2927
3431
|
/**
|
2928
3432
|
*
|
@@ -3687,6 +4191,7 @@ class ES {
|
|
3687
4191
|
.then(() => ESNetworkManager$1.init())
|
3688
4192
|
.then(() => ESPluginManager$1.init())
|
3689
4193
|
.then(() => ESLaunchManager$1.init(configuration.router))
|
4194
|
+
.then(() => ESSharedDataManager$1.init())
|
3690
4195
|
.then(() => Promise.all([
|
3691
4196
|
ESUsbDeviceManager$1.init(),
|
3692
4197
|
ESStorageManager$1.init(),
|
@@ -3699,6 +4204,7 @@ class ES {
|
|
3699
4204
|
ESEventBus$1.init(),
|
3700
4205
|
ESBroadcastManager$1.init(),
|
3701
4206
|
ESLocalStorage$1.init(),
|
4207
|
+
ESLocationManager$1.init()
|
3702
4208
|
]))
|
3703
4209
|
}
|
3704
4210
|
//
|
@@ -4269,4 +4775,4 @@ const ES_KEYCODE_ESCAPE = 111;
|
|
4269
4775
|
const ES_KEYCODE_MENU = 82;
|
4270
4776
|
const ES_KEYCODE_SEARCH = 84;
|
4271
4777
|
|
4272
|
-
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,
|
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 };
|