java.lang.Object
uk.co.caprica.vlcj.factory.DialogsApi
Behaviour pertaining to native dialogs.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable native dialog callbacks.voidDisable native dialog callbacks, with user data.booleanDismiss a native dialog.voidEnable native dialog callbacks.voidEnable native dialog callbacks, with user data.newDialogs(DialogType... dialogTypes) Create a new dialogs callback component.booleanpostAction(DialogId id, int action) Post (select) an action to a native question dialog.booleanPost credentials to a native login dialog.
-
Method Details
-
newDialogs
Create a new dialogs callback component.- Parameters:
dialogTypes- types of dialogs to enable, passing no types ornullwill enable all dialogs- Returns:
- dialogs callback component
-
enable
Enable native dialog callbacks.- Parameters:
dialogs- dialogs callback component
-
disable
public void disable()Disable native dialog callbacks. -
enable
Enable native dialog callbacks, with user data.- Parameters:
dialogs- dialogs callback componentuserData- user data associated with the dialog
-
disable
Disable native dialog callbacks, with user data.- Parameters:
userData- user data associated with the dialog
-
postLogin
Post credentials to a native login dialog.- Parameters:
id- identifier of the dialog to post tousername- username credentialpassword- password credentialstoreCredentials-trueif the user wants to store the credential;falseotherwise- Returns:
trueif successful;falseif error
-
postAction
Post (select) an action to a native question dialog.- Parameters:
id- identifier of the dialog to post toaction- action to post- Returns:
trueif successful;falseif error
-
dismiss
Dismiss a native dialog.- Parameters:
id- identifier of the dialog to dismiss- Returns:
trueif successful;falseif error
-