Class Html5Utils
java.lang.Object
org.silverpeas.mobile.client.common.Html5Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanstatic voidcopyInClipboard(String text) static voiddisableAnchor(com.google.gwt.user.client.ui.Anchor a) static voidenableAnchor(com.google.gwt.user.client.ui.Anchor a) static com.google.gwt.core.client.JsArray<Voice>static booleaninitSpeech(boolean continuous, String language) static booleanstatic booleanstatic booleanstatic voidstatic voidonSpeechResult(String result) static voidstatic voidstatic voidstatic voidsetVideoFullScreen(com.google.gwt.dom.client.Element element) static voidsetVideoNotFullScreen(com.google.gwt.dom.client.Element element) static voidstatic voidstatic voidstatic voidvibrate()static voidvibrate(int duration)
-
Constructor Details
-
Html5Utils
public Html5Utils()
-
-
Method Details
-
disableAnchor
public static void disableAnchor(com.google.gwt.user.client.ui.Anchor a) -
enableAnchor
public static void enableAnchor(com.google.gwt.user.client.ui.Anchor a) -
setVideoFullScreen
public static void setVideoFullScreen(com.google.gwt.dom.client.Element element) -
setVideoNotFullScreen
public static void setVideoNotFullScreen(com.google.gwt.dom.client.Element element) -
isVideoFullScreen
public static boolean isVideoFullScreen() -
vibrate
public static void vibrate() -
vibrate
public static void vibrate(int duration) -
isSpeechSupported
public static boolean isSpeechSupported() -
isSpeechSynthesisSupported
public static boolean isSpeechSynthesisSupported() -
startListening
public static void startListening() -
stopListening
public static void stopListening() -
initSpeech
-
getVoices
-
readText
-
cancelSpeaking
public static void cancelSpeaking() -
onSpeechResult
-
onSpeechStart
public static void onSpeechStart() -
onSpeechStop
public static void onSpeechStop() -
onSpeechError
public static void onSpeechError() -
copyInClipboard
-