public class QRCodeView extends androidx.appcompat.widget.AppCompatImageView implements RevelControl
Constructor and Description |
---|
QRCodeView(android.content.Context context,
Module module) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose.
|
protected void |
download() |
java.lang.String |
getName()
Gets the name.
|
java.util.Iterator<? extends Option> |
getOptions()
Gets the options.
|
Playlist |
getPlaylist()
Gets the playlist.
|
ModuleType |
getType()
Gets the module type.
|
int |
getZIndex()
Gets the z index.
|
void |
initialize(Module module)
Initialize.
|
boolean |
isAutoStart()
Checks if auto start is enabled.
|
boolean |
isStarted()
True is control is currently started.
|
void |
onDownloadFileCompleted(File file) |
void |
setAutoStart(boolean flag)
Sets auto start.
|
void |
setText(java.lang.String text)
Regenerates the QR code based on the given text.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
protected void download()
public void initialize(Module module)
RevelControl
initialize
in interface RevelControl
module
- the modulepublic void setText(java.lang.String text)
text
- qr code text valuepublic void start()
RevelControl
start
in interface RevelControl
public void stop()
RevelControl
stop
in interface RevelControl
public void dispose()
RevelControl
dispose
in interface RevelControl
public int getZIndex()
RevelControl
getZIndex
in interface RevelControl
public java.lang.String getName()
RevelControl
getName
in interface RevelControl
public Playlist getPlaylist()
RevelControl
getPlaylist
in interface RevelControl
public java.util.Iterator<? extends Option> getOptions()
RevelControl
getOptions
in interface RevelControl
public ModuleType getType()
RevelControl
getType
in interface RevelControl
public boolean isAutoStart()
RevelControl
isAutoStart
in interface RevelControl
public void setAutoStart(boolean flag)
RevelControl
setAutoStart
in interface RevelControl
flag
- the new auto start valuepublic boolean isStarted()
RevelControl
isStarted
in interface RevelControl
public void onDownloadFileCompleted(File file)