問題タブ [rx-kotlin]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
857 参照

kotlin - Required and found ?
class TaskRepo(taskData: TaskData) {

companion object {
    private val repoByTask: LRUMap<String, OrderFormRepo> = LRUMap(2, 10);

     fun getInstance(taskData: TaskData): OrderFormR

}

in getInstance method of companion object I am getting compile time error: Required TaskRepo and found TaskRepo?


How to pass a parameter and an event into a function

I have had a (simple) problem I can't solve for a while. I don't know how to combine myFunction1 and myFunction2 into one function.

So my question is simple, how do you get the third one to work. Work being: passing the val parameter and making the preventDefault work. So how do you combine myFunction1 and myFunction2 into one function?

0 投票する
1 に答える
759 参照

android - 進行状況ダイアログを表示し、アイテムのクリックで閉じる方法

これは私のコードですdialog。アイテムのクリックで 進行状況を表示したいのですがgetQrImageBitmap、showDetail関数が完了するまで閉じる必要がありますが、アイテムのクリックで詳細を表示および非表示にする方法を教えてください。ありがとう!!