| java.lang.Object |
| ↳ |
XWalkUIClientInternal |
| |
↳ |
org.xwalk.core.XWalkUIClient |
Class Overview
This class notifies the embedder UI events/callbacks.
Summary
| Public Methods |
|
void
|
onFullscreenToggled(XWalkViewInternal view, boolean enterFullscreen)
|
|
void
|
onJavascriptCloseWindow(XWalkViewInternal view)
|
|
boolean
|
onJavascriptModalDialog(XWalkViewInternal view, JavascriptMessageTypeInternal typeInternal, String url, String message, String defaultValue, XWalkJavascriptResultInternal result)
|
|
void
|
onRequestFocus(XWalkViewInternal view)
|
|
void
|
onScaleChanged(XWalkViewInternal view, float oldScale, float newScale)
|
|
void
|
openFileChooser(XWalkViewInternal view, uploadFile, String acceptType, String capture)
|
|
void
|
openFileChooser(XWalkView view, uploadFile, String acceptType, String capture)
Tell the client to open a file chooser.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
XWalkUIClient
(XWalkView view)
Parameters
| view |
the owner XWalkView instance.
|
Public Methods
public
void
onFullscreenToggled
(XWalkViewInternal view, boolean enterFullscreen)
public
void
onJavascriptCloseWindow
(XWalkViewInternal view)
public
boolean
onJavascriptModalDialog
(XWalkViewInternal view, JavascriptMessageTypeInternal typeInternal, String url, String message, String defaultValue, XWalkJavascriptResultInternal result)
public
void
onRequestFocus
(XWalkViewInternal view)
public
void
onScaleChanged
(XWalkViewInternal view, float oldScale, float newScale)
public
void
openFileChooser
(XWalkViewInternal view, uploadFile, String acceptType, String capture)
public
void
openFileChooser
(XWalkView view, uploadFile, String acceptType, String capture)
Tell the client to open a file chooser.
Parameters
| view |
the owner XWalkView instance. |
| uploadFile |
the callback class to handle the result from caller. It MUST
be invoked in all cases. Leave it not invoked will block all following
requests to open file chooser. |
| acceptType |
value of the 'accept' attribute of the input tag associated
with this file picker. |
| capture |
value of the 'capture' attribute of the input tag associated
with this file picker
|