Modifier and Type | Method and Description |
---|---|
static Hyperlink |
from(Intent intent)
Create a new hyperlink for specified
Intent , which will be
executed when the line is clicked. |
static Hyperlink |
from(Intent intent,
boolean important)
Create a new hyperlink for specified
Intent , which will be
executed when the line is clicked. |
static Hyperlink |
from(Runnable runnable)
Create a new hyperlink for specified
Runnable , which will be
invoked when the line is clicked. |
static Hyperlink |
from(Runnable runnable,
boolean important)
Create a new hyperlink for specified
Runnable , which will be
invoked when the line is clicked. |
@NonNull public static Hyperlink from(@NonNull Runnable runnable)
Runnable
, which will be
invoked when the line is clicked.runnable
- The runnable to run on click.@NonNull public static Hyperlink from(@NonNull Runnable runnable, boolean important)
Runnable
, which will be
invoked when the line is clicked.
Important hyperlinks can be printed in different color, or can have some special behavior, e.g. automatic scrolling can be switched off to keep the important hyperlink visible.
runnable
- The runnable to run on click.important
- True if the hyperlink should be handled as an important
one, false if it is a standard one.public static Hyperlink from(@NonNull Intent intent)
Intent
, which will be
executed when the line is clicked.intent
- The intent to execute on click.public static Hyperlink from(@NonNull Intent intent, boolean important)
Intent
, which will be
executed when the line is clicked.
Important hyperlinks can be printed in different color, or can have some special behavior, e.g. automatic scrolling can be switched off to keep the important hyperlink visible.
intent
- The intent to execute on click.important
- True if the hyperlink should be handled as an important
one, false if it is a standard one.