25 lines
No EOL
652 B
Kotlin
25 lines
No EOL
652 B
Kotlin
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
|
|
|
|
interface SnackbarHandler {
|
|
|
|
fun showSnackbar(
|
|
@StringRes text: Int,
|
|
length: Int = Snackbar.LENGTH_INDEFINITE,
|
|
@StringRes buttonTitle: Int? = null,
|
|
action: View.OnClickListener? = null,
|
|
)
|
|
|
|
fun showSnackbar(
|
|
text: TextReference,
|
|
length: Int = Snackbar.LENGTH_INDEFINITE,
|
|
buttonTitle: TextReference? = null,
|
|
action: View.OnClickListener? = null,
|
|
)
|
|
|
|
fun dismissSnackbar()
|
|
} |