Class Html5Utils
- java.lang.Object
-
- org.silverpeas.mobile.client.common.Html5Utils
-
public class Html5Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Html5Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcancelSpeaking()static booleancanShare(String title, String text, String url)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>getVoices()static booleaninitSpeech(boolean continuous, String language)static booleanisSpeechSupported()static booleanisSpeechSynthesisSupported()static booleanisVideoFullScreen()static voidonSpeechError()static voidonSpeechResult(String result)static voidonSpeechStart()static voidonSpeechStop()static voidreadText(String[] text, com.google.gwt.user.client.Command endCallback)static voidsetVideoFullScreen(com.google.gwt.dom.client.Element element)static voidsetVideoNotFullScreen(com.google.gwt.dom.client.Element element)static voidshare(String title, String text, String url)static voidstartListening()static voidstopListening()static voidvibrate()static voidvibrate(int duration)
-
-
-
Method Detail
-
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
public static boolean initSpeech(boolean continuous, String language)
-
getVoices
public static com.google.gwt.core.client.JsArray<Voice> getVoices()
-
readText
public static void readText(String[] text, com.google.gwt.user.client.Command endCallback)
-
cancelSpeaking
public static void cancelSpeaking()
-
onSpeechResult
public static void onSpeechResult(String result)
-
onSpeechStart
public static void onSpeechStart()
-
onSpeechStop
public static void onSpeechStop()
-
onSpeechError
public static void onSpeechError()
-
-