Updated on 2026-08-14
This commit is contained in:
commit
b2d2d07dc5
8 changed files with 325 additions and 82 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.tangem.tap.common
|
||||
|
||||
import android.view.View
|
||||
import androidx.annotation.StringRes
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
|
@ -11,14 +10,14 @@ interface SnackbarHandler {
|
|||
@StringRes text: Int,
|
||||
length: Int = Snackbar.LENGTH_INDEFINITE,
|
||||
@StringRes buttonTitle: Int? = null,
|
||||
action: View.OnClickListener? = null,
|
||||
action: (() -> Unit)? = null,
|
||||
)
|
||||
|
||||
fun showSnackbar(
|
||||
text: TextReference,
|
||||
length: Int = Snackbar.LENGTH_INDEFINITE,
|
||||
buttonTitle: TextReference? = null,
|
||||
action: View.OnClickListener? = null,
|
||||
action: (() -> Unit)? = null,
|
||||
)
|
||||
|
||||
fun dismissSnackbar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue