@extscreen/es-core 1.1.28 → 1.1.30
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 +9 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -466,6 +466,11 @@ class ESNetworkModule {
|
|
466
466
|
return Vue.Native.callNativeWithPromise('AndroidNetworkModule',
|
467
467
|
'getActiveNetworkInfo');
|
468
468
|
}
|
469
|
+
|
470
|
+
getWifiInfo() {
|
471
|
+
return Vue.Native.callNativeWithPromise('AndroidNetworkModule',
|
472
|
+
'getWifiInfo');
|
473
|
+
}
|
469
474
|
}
|
470
475
|
|
471
476
|
var ESNetworkModule$1 = new ESNetworkModule();
|
@@ -517,6 +522,10 @@ class ESNetworkManager {
|
|
517
522
|
getNetworkType() {
|
518
523
|
return this._networkInfo.type;
|
519
524
|
}
|
525
|
+
|
526
|
+
getWifiInfo() {
|
527
|
+
return ESNetworkModule$1.getWifiInfo();
|
528
|
+
}
|
520
529
|
}
|
521
530
|
|
522
531
|
var ESNetworkManager$1 = new ESNetworkManager();
|
@@ -2090,9 +2099,6 @@ var ESRouter = {
|
|
2090
2099
|
methods: {
|
2091
2100
|
//---------------------------返回键--------------------------------
|
2092
2101
|
onESRouterBackPressed() {
|
2093
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2094
|
-
return
|
2095
|
-
}
|
2096
2102
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2097
2103
|
ESLog.d(TAG, '#-------onESRouterBackPressed----->>>>>');
|
2098
2104
|
}
|
@@ -2104,9 +2110,6 @@ var ESRouter = {
|
|
2104
2110
|
},
|
2105
2111
|
//----------------------------按键-------------------------------
|
2106
2112
|
onESRouterDispatchKeyEvent(keyEvent) {
|
2107
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2108
|
-
return
|
2109
|
-
}
|
2110
2113
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2111
2114
|
ESLog.d(TAG, '#-------onESRouterDispatchKeyEvent----->>>>>' + keyEvent);
|
2112
2115
|
}
|
@@ -2119,9 +2122,6 @@ var ESRouter = {
|
|
2119
2122
|
|
2120
2123
|
//---------------------------生命周期--------------------------------
|
2121
2124
|
onESRouterLifecycleChanged(event) {
|
2122
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2123
|
-
return
|
2124
|
-
}
|
2125
2125
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
2126
2126
|
ESLog.d(TAG, '#-------onESRouterLifecycleChanged----->>>>>' + event);
|
2127
2127
|
}
|
@@ -2138,19 +2138,6 @@ var ESRouter = {
|
|
2138
2138
|
*
|
2139
2139
|
*/
|
2140
2140
|
var ESPageLifecycle = {
|
2141
|
-
mounted() {
|
2142
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2143
|
-
ESApp.$on('OnNewIntent', this.onESLifecycleNewIntent);
|
2144
|
-
ESApp.$on('LifecycleChange', this.onESLifecycleChanged);
|
2145
|
-
}
|
2146
|
-
},
|
2147
|
-
beforeDestroy() {
|
2148
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2149
|
-
ESApp.$off('OnNewIntent', this.onESLifecycleNewIntent);
|
2150
|
-
ESApp.$off('LifecycleChange', this.onESLifecycleChanged);
|
2151
|
-
}
|
2152
|
-
},
|
2153
|
-
|
2154
2141
|
methods: {
|
2155
2142
|
onESLifecycleChanged(event, params) {
|
2156
2143
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
@@ -2246,17 +2233,6 @@ const KEYCODE_SEARCH = 84;
|
|
2246
2233
|
*/
|
2247
2234
|
|
2248
2235
|
var ESKeyEventMixin = {
|
2249
|
-
mounted() {
|
2250
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2251
|
-
ESApp.$on('DispatchKeyEvent', this.onDispatchKeyEvent);
|
2252
|
-
}
|
2253
|
-
},
|
2254
|
-
beforeDestroy() {
|
2255
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2256
|
-
ESApp.$off('DispatchKeyEvent', this.onDispatchKeyEvent);
|
2257
|
-
}
|
2258
|
-
},
|
2259
|
-
|
2260
2236
|
methods: {
|
2261
2237
|
onDispatchKeyEvent(keyEvent) {
|
2262
2238
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
@@ -2288,19 +2264,6 @@ var ESKeyEventMixin = {
|
|
2288
2264
|
*/
|
2289
2265
|
|
2290
2266
|
var ESBackPressMixin = {
|
2291
|
-
|
2292
|
-
mounted() {
|
2293
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2294
|
-
Vue.Native.callNative('DeviceEventModule', 'setListenBackPress', true);
|
2295
|
-
ESApp.$on('hardwareBackPress', this.onESBackPressed);
|
2296
|
-
}
|
2297
|
-
},
|
2298
|
-
beforeDestroy() {
|
2299
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
2300
|
-
ESApp.$off('hardwareBackPress', this.onESBackPressed);
|
2301
|
-
}
|
2302
|
-
},
|
2303
|
-
|
2304
2267
|
methods: {
|
2305
2268
|
onESBackPressed() {
|
2306
2269
|
this.onBackPressed();
|
@@ -3369,19 +3332,6 @@ const AUDIO_USAGE_ASSISTANT = 16;
|
|
3369
3332
|
*/
|
3370
3333
|
|
3371
3334
|
var ESBackPress = {
|
3372
|
-
|
3373
|
-
mounted() {
|
3374
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3375
|
-
Vue.Native.callNative('DeviceEventModule', 'setListenBackPress', true);
|
3376
|
-
ESApp.$on('hardwareBackPress', this.onESBackPressed);
|
3377
|
-
}
|
3378
|
-
},
|
3379
|
-
beforeDestroy() {
|
3380
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3381
|
-
ESApp.$off('hardwareBackPress', this.onESBackPressed);
|
3382
|
-
}
|
3383
|
-
},
|
3384
|
-
|
3385
3335
|
methods: {
|
3386
3336
|
onESBackPressed() {
|
3387
3337
|
this.onBackPressed();
|
@@ -3397,17 +3347,6 @@ var ESBackPress = {
|
|
3397
3347
|
*/
|
3398
3348
|
|
3399
3349
|
var ESKeyEvent = {
|
3400
|
-
mounted() {
|
3401
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3402
|
-
ESApp.$on('DispatchKeyEvent', this.onDispatchKeyEvent);
|
3403
|
-
}
|
3404
|
-
},
|
3405
|
-
beforeDestroy() {
|
3406
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3407
|
-
ESApp.$off('DispatchKeyEvent', this.onDispatchKeyEvent);
|
3408
|
-
}
|
3409
|
-
},
|
3410
|
-
|
3411
3350
|
methods: {
|
3412
3351
|
onDispatchKeyEvent(keyEvent) {
|
3413
3352
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
@@ -3438,19 +3377,6 @@ var ESKeyEvent = {
|
|
3438
3377
|
*
|
3439
3378
|
*/
|
3440
3379
|
var ESLifecycleMixin = {
|
3441
|
-
mounted() {
|
3442
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3443
|
-
ESApp.$on('OnNewIntent', this.onESLifecycleNewIntent);
|
3444
|
-
ESApp.$on('LifecycleChange', this.onESLifecycleChanged);
|
3445
|
-
}
|
3446
|
-
},
|
3447
|
-
beforeDestroy() {
|
3448
|
-
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
3449
|
-
ESApp.$off('OnNewIntent', this.onESLifecycleNewIntent);
|
3450
|
-
ESApp.$off('LifecycleChange', this.onESLifecycleChanged);
|
3451
|
-
}
|
3452
|
-
},
|
3453
|
-
|
3454
3380
|
methods: {
|
3455
3381
|
onESLifecycleChanged(event, params) {
|
3456
3382
|
if (ESLog.isLoggable(ESLog.DEBUG)) {
|