@extscreen/es-core 1.0.20 → 1.0.23
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 +74 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -440,6 +440,18 @@ class ESDeviceManager {
|
|
440
440
|
getBuildSDKVersion() {
|
441
441
|
return this._buildSDKVersion;
|
442
442
|
}
|
443
|
+
|
444
|
+
getDensity() {
|
445
|
+
return this._density;
|
446
|
+
}
|
447
|
+
|
448
|
+
getDensityDpi() {
|
449
|
+
return this._densityDpi;
|
450
|
+
}
|
451
|
+
|
452
|
+
getScaledDensity() {
|
453
|
+
return this._scaledDensity;
|
454
|
+
}
|
443
455
|
}
|
444
456
|
|
445
457
|
var ESDeviceManager$1 = new ESDeviceManager();
|
@@ -510,6 +522,68 @@ var ESNetworkManager$1 = new ESNetworkManager();
|
|
510
522
|
|
511
523
|
class ESToastModule {
|
512
524
|
|
525
|
+
make() {
|
526
|
+
Vue.Native.callNative('ToastModule', "make");
|
527
|
+
}
|
528
|
+
|
529
|
+
setMode(mode) {
|
530
|
+
Vue.Native.callNative('ToastModule', "setMode", mode);
|
531
|
+
}
|
532
|
+
|
533
|
+
setGravity(gravity, xOffset, yOffset) {
|
534
|
+
Vue.Native.callNative('ToastModule', "setGravity", gravity, xOffset, yOffset);
|
535
|
+
}
|
536
|
+
|
537
|
+
setBackgroundColor(backgroundColor) {
|
538
|
+
Vue.Native.callNative('ToastModule', "setBgColor", backgroundColor);
|
539
|
+
}
|
540
|
+
|
541
|
+
setTextColor(textColor) {
|
542
|
+
Vue.Native.callNative('ToastModule', "setTextColor", textColor);
|
543
|
+
}
|
544
|
+
|
545
|
+
setTextSize(textSize) {
|
546
|
+
Vue.Native.callNative('ToastModule', "setTextSize", textSize);
|
547
|
+
}
|
548
|
+
|
549
|
+
setLongDuration(isLong) {
|
550
|
+
Vue.Native.callNative('ToastModule', "setLongDuration", isLong);
|
551
|
+
}
|
552
|
+
|
553
|
+
setNotUseSystemToast() {
|
554
|
+
Vue.Native.callNative('ToastModule', "setNotUseSystemToast");
|
555
|
+
}
|
556
|
+
|
557
|
+
show(text) {
|
558
|
+
Vue.Native.callNative('ToastModule', "show", text);
|
559
|
+
}
|
560
|
+
|
561
|
+
cancel() {
|
562
|
+
Vue.Native.callNative('ToastModule', "cancel");
|
563
|
+
}
|
564
|
+
|
565
|
+
setBackground(url) {
|
566
|
+
Vue.Native.callNative('ToastModule', "setBackground", {url: url});
|
567
|
+
}
|
568
|
+
|
569
|
+
setLeftIcon(url) {
|
570
|
+
Vue.Native.callNative('ToastModule', "setLeftIcon", {url: url});
|
571
|
+
}
|
572
|
+
|
573
|
+
setTopIcon(url) {
|
574
|
+
Vue.Native.callNative('ToastModule', "setTopIcon", {url: url});
|
575
|
+
}
|
576
|
+
|
577
|
+
setRightIcon(url) {
|
578
|
+
Vue.Native.callNative('ToastModule', "setRightIcon", {url: url});
|
579
|
+
}
|
580
|
+
|
581
|
+
setBottomIcon(url) {
|
582
|
+
Vue.Native.callNative('ToastModule', "setBottomIcon", {url: url});
|
583
|
+
}
|
584
|
+
|
585
|
+
|
586
|
+
//----------------------------------------------------------------------------------
|
513
587
|
showToast(message) {
|
514
588
|
Vue.Native.callNative('ToastModule', "showToast", message);
|
515
589
|
}
|
@@ -2422,9 +2496,6 @@ var ESKeyEventMixin = {
|
|
2422
2496
|
|
2423
2497
|
methods: {
|
2424
2498
|
onAndroidKeyEvent(keyEvent) {
|
2425
|
-
if (keyEvent.keyRepeat >= 1) {
|
2426
|
-
return;
|
2427
|
-
}
|
2428
2499
|
if (keyEvent.action === KEY_ACTION_DOWN) {
|
2429
2500
|
this.onKeyDown(keyEvent);
|
2430
2501
|
}
|