提交 3ef26aa4 编写于 作者: 杜庆泉's avatar 杜庆泉

修改Runnable 实现关键字

上级 68ecb051
...@@ -128,7 +128,7 @@ class AddUIRunnable implements Runnable { ...@@ -128,7 +128,7 @@ class AddUIRunnable implements Runnable {
* 实现一个移除view的 Runnable类 * 实现一个移除view的 Runnable类
* 用法说明:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#%E5%8C%BF%E5%90%8D%E5%86%85%E9%83%A8%E7%B1%BB * 用法说明:https://uniapp.dcloud.net.cn/plugin/uts-plugin.html#%E5%8C%BF%E5%90%8D%E5%86%85%E9%83%A8%E7%B1%BB
*/ */
class RemoveUIRunnable extends Runnable { class RemoveUIRunnable implements Runnable {
override run() : void { override run() : void {
......
...@@ -20,7 +20,7 @@ export function showPrompt(_title : string | null, _message : string | null, _pl ...@@ -20,7 +20,7 @@ export function showPrompt(_title : string | null, _message : string | null, _pl
/** /**
* 用户输入对话框监听器 * 用户输入对话框监听器
*/ */
class DialogListener extends DialogInterface.OnClickListener { class DialogListener implements DialogInterface.OnClickListener {
inputET : EditText inputET : EditText
callback : (content : string) => void callback : (content : string) => void
...@@ -45,7 +45,7 @@ class DialogListener extends DialogInterface.OnClickListener { ...@@ -45,7 +45,7 @@ class DialogListener extends DialogInterface.OnClickListener {
/** /**
* Dialog ui任务封装 * Dialog ui任务封装
*/ */
class DialogUIRunnable extends Runnable { class DialogUIRunnable implements Runnable {
callback ?: (content : string) => void = null callback ?: (content : string) => void = null
title : string title : string
......
...@@ -42,7 +42,7 @@ export class DoAppWidget extends AppWidgetProvider { ...@@ -42,7 +42,7 @@ export class DoAppWidget extends AppWidgetProvider {
/** /**
* Dialog ui任务封装 * Dialog ui任务封装
*/ */
class UIRunnable extends Runnable { class UIRunnable implements Runnable {
context: Context; context: Context;
appWidgetManager: AppWidgetManager; appWidgetManager: AppWidgetManager;
......
...@@ -366,7 +366,7 @@ class DemoActivity extends Activity{ ...@@ -366,7 +366,7 @@ class DemoActivity extends Activity{
} }
//@UTSAndroid.Suppress("DEPRECATION") //@UTSAndroid.Suppress("DEPRECATION")
class IntentRunable extends Runnable{ class IntentRunable implements Runnable{
override run(){ override run(){
console.log("IntentRunable = " + Thread.currentThread().getName()) console.log("IntentRunable = " + Thread.currentThread().getName())
let intent = new Intent(UTSAndroid.getUniActivity(),DemoActivity().javaClass); let intent = new Intent(UTSAndroid.getUniActivity(),DemoActivity().javaClass);
......
...@@ -3,7 +3,7 @@ import XToast from "com.hjq.xtoast.XToast"; ...@@ -3,7 +3,7 @@ import XToast from "com.hjq.xtoast.XToast";
import R from "io.dcloud.uni_modules.uts_toast.R"; import R from "io.dcloud.uni_modules.uts_toast.R";
class UIRunnable extends Runnable { class UIRunnable implements Runnable {
override run():void { override run():void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册