SystemPrompt

Since: BlackBerry 10.0.0

#include <bb/system/SystemPrompt>

To link against this class, add the following line to your .pro file: LIBS += -lbbsystem

A dialog box that displays an input field, a check box, and buttons in its content area.

The prompt displayed will be an application-modal window, though it is possible to use a system-modal window by setting the SystemPrompt::modality property.

In addition, the buttonAreaLimit property controls the number of buttons that will be contained in the button area of the window. By default, the button area will be large enough to contain confirmButton, customButton, and cancelButton, if they are valid. The buttons will be considered invalid if they do not have a label set.

Presentation properties are marked as such, and affect future requests. Any pending requests will use the values of the presentation properties at the time of the request.

Note: Once the dialog is displayed after a call to show() or exec() there are two ways of updating the dialog after changing its presentation properties.

The default way is to update all the necessary presentation properties and call the update() method. This guarantees that all the presentation properties will be updated at the same time.

The second method is to have the dialog update automatically after every presentation property change. To enable these automatic updates, the autoUpdateEnabled property must be set to true.

Be aware that the second method does not guarantee atomic updates for all the presentation properties changes. This method can lead to noticeable delays between updates of individual properties. If more than one property needs to be updated, use the first method. If only one presentation property is being updated frequently (for example the text on the dialog body must be updated to notify the user of the application's current status) the second approach can be used.


Overview

Public Functions Index

SystemPrompt (QObject *parent=0)
virtual ~SystemPrompt ()
boolactivityIndicatorVisible () const
QStringbody () const
intbuttonAreaLimit () const
Q_INVOKABLE bb::system::SystemUiButton *buttonSelection () const
bb::system::SystemUiButton *cancelButton ()
bb::system::SystemUiButton *confirmButton ()
bb::system::SystemUiButton *customButton ()
bb::system::SystemUiButton *defaultButton ()
booldismissAutomatically () const
boolemoticonsEnabled () const
bb::system::SystemUiError::Typeerror () const
boolincludeRememberMe () const
bb::system::SystemUiInputField *inputField ()
Q_INVOKABLE QStringinputFieldTextEntry () const
bb::system::SystemUiInputOption::TypesinputOptions () const
boolisAutoUpdateEnabled () const
bb::system::SystemUiModality::Typemodality () const
boolrememberMeChecked () const
Q_INVOKABLE boolrememberMeSelection () const
QStringrememberMeText () const
Q_INVOKABLE voidresetActivityIndicatorVisible ()
Q_INVOKABLE voidresetAutoUpdateEnabled ()
Q_INVOKABLE voidresetBody ()
Q_INVOKABLE voidresetButtonAreaLimit ()
Q_INVOKABLE voidresetCancelButton ()
Q_INVOKABLE voidresetConfirmButton ()
Q_INVOKABLE voidresetCustomButton ()
Q_INVOKABLE voidresetDefaultButton ()
Q_INVOKABLE voidresetDismissAutomatically ()
Q_INVOKABLE voidresetEmoticonsEnabled ()
Q_INVOKABLE voidresetIncludeRememberMe ()
Q_INVOKABLE voidresetInputField ()
Q_INVOKABLE voidresetInputOptions ()
Q_INVOKABLE voidresetModality ()
Q_INVOKABLE voidresetRememberMeChecked ()
Q_INVOKABLE voidresetRememberMeText ()
Q_INVOKABLE voidresetReturnKeyAction ()
Q_INVOKABLE voidresetTitle ()
bb::system::SystemUiResult::Typeresult () const
bb::system::SystemUiReturnKeyAction::TypereturnKeyAction () const
voidsetActivityIndicatorVisible (bool visible)
voidsetAutoUpdateEnabled (bool update)
voidsetBody (const QString &body)
voidsetButtonAreaLimit (int newButtonAreaLimit)
voidsetDefaultButton (bb::system::SystemUiButton *newDefaultButton)
voidsetDismissAutomatically (bool automaticDismissal)
voidsetEmoticonsEnabled (bool newEmoticonsEnabled)
voidsetIncludeRememberMe (bool value)
voidsetInputOptions (bb::system::SystemUiInputOption::Types options)
voidsetModality (bb::system::SystemUiModality::Type newModality)
voidsetRememberMeChecked (bool newRememberMeSelected)
voidsetRememberMeText (const QString &newRememberMeText)
voidsetReturnKeyAction (bb::system::SystemUiReturnKeyAction::Type newReturnKeyAction)
voidsetTitle (const QString &title)
QStringtitle () const

Public Slots Index

Signals Index

voidactivityIndicatorVisibleChanged (bool value)
voidautoUpdateEnabledChanged (bool value)
voidbodyChanged (const QString &value)
voidbuttonAreaLimitChanged (int newButtonAreaLimit)
voiddefaultButtonChanged (bb::system::SystemUiButton *newDefaultButton)
voiddismissAutomaticallyChanged (bool automaticDismissal)
voidemoticonsEnabledChanged (bool newEmoticonsEnabled)
voidfinished (bb::system::SystemUiResult::Type value)
voidincludeRememberMeChanged (bool value)
voidinputOptionsChanged (bb::system::SystemUiInputOption::Types newOptions)
voidmodalityChanged (bb::system::SystemUiModality::Type newModality)
voidrememberMeCheckedChanged (bool newRememberMeSelected)
voidrememberMeTextChanged (const QString &newRememberMeText)
voidreturnKeyActionChanged (bb::system::SystemUiReturnKeyAction::Type newReturnKeyAction)
voidtitleChanged (const QString &value)

Properties

bool activityIndicatorVisible

Indicates whether to display an activity indicator in the title bar of the dialog.

This is a presentation property whose default value is false.

Since:

BlackBerry 10.2.0

bool autoUpdateEnabled

Indicates whether the dialog will be udpated every time a presentation property is changed.

If autoUpdateEnabled is true, every time any of the presentation properties on the dialog are changed, the dialog will also update immediately to reflect the changes on the UI. If autoUpdateEnabled is false, the dialog will not update automatically, instead the show() method must be called. This is the default behavior.

Note:

The main difference in behavior with the autoUpdateEnabled flag is most apparent when multiple presentation properties are changed. With autoUpdateEnabled set to true, the onscreen dialog may be updated after each individual presentation property is changed. This may not be an ideal user experience, particularly as the number of changed presentation properties increases. With autoUpdateEnabled set to false, it is possible to batch multiple presentation property updates and apply them to the onscreen dialog as one unit by calling show().

Since:

BlackBerry 10.2.0

QString body

Represents the main text of the window.

This is a presentation property whose default value is a default-constructed QString.

Since:

BlackBerry 10.0.0

int buttonAreaLimit

The maximum number of buttons that can be shown without causing an overflow.

When overflow occurs all buttons will be stacked vertically.

This is a presentation property whose default value is -1.
Note:

-1 implies that the default system behavior will be applied. The supported range is 1-3, with any values outside the range resetting the property to its default value.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton cancelButton[read-only]

Represents the button associated with the default cancellation action of the prompt.

This is a presentation property whose default bb::system::SystemUiButton::label property is "Cancel".

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton confirmButton[read-only]

Represents the button associated with the default confirming action of the prompt.

This is a presentation property whose default bb::system::SystemUiButton::label property is "OK".

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton customButton[read-only]

Represents the button associated with the tertiary action of the prompt.

This is a presentation property whose default bb::system::SystemUiButton::label property is a default-constructed QString.

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton defaultButton

Represents the button associated with the return key action of the prompt.

When the user triggers the return key action, this button will be automatically selected. If the defaultButton is NULL, then triggering the return key action will not select a button.

If defaultButton is set to a button that this instance does not manage, then this property is undefined.

This is a presentation property whose default value is confirmButton.

Since:

BlackBerry 10.0.0

bool dismissAutomatically

Indicates whether to dismiss the prompt when a button is selected.

If false, the prompt must be dismissed using cancel(). Otherwise, the prompt is dismissed with a button selection.

This is a presentation property whose default value is true.

Since:

BlackBerry 10.0.0

bool emoticonsEnabled

Retrieves whether the text can be displayed with emoticons.

This is a presentation property whose default value is false.

Since:

BlackBerry 10.0.0

bb::system::SystemUiError::Type error[read-only]

Represents the last error encountered.

This property is only valid when SystemPrompt::result is bb::system::SystemUiResult::Error.
See also:

bb::system::SystemUiError for the list of possible errors.

Since:

BlackBerry 10.0.0

bool includeRememberMe

Indicates whether a toggle switch for remembering user selection and input should be included in the prompt.

If a toggle switch is requested, then the user will have the ability to enable and disable it. The user selection will be available using rememberMeSelection() when the request is finished. To customize how the toggle switch is presented, use rememberMeChecked() and rememberMeText().

This is a presentation property whose default value is false.

Since:

BlackBerry 10.0.0

bb::system::SystemUiInputField inputField[read-only]

Represents the input field that will be included in the prompt.

The label property of the field will be ignored.

Since:

BlackBerry 10.0.0

bb::system::SystemUiInputOption::Types inputOptions

Represents the options applied to the text in the system input field.

bb::system::SystemUiModality::Type modality

Represents the modality of the prompt.

This is a presentation property whose value is bb::system::SystemUiModality::Application.
See also:

bb::system::SystemUiModality for the list of valid values.

Since:

BlackBerry 10.0.0

bool rememberMeChecked

Represents the selection state of the toggle switch for remembering user selection.

The state is only applied if includeRememberMe is true. To obtain the user selection for this property once the request is finished, use rememberMeSelection().

This is a presentation property whose default value is true.

Since:

BlackBerry 10.0.0

QString rememberMeText

Represents the text to associate with the toggle switch associated with rememberMeChecked().

This property is only applied if includeRememberMe() is true.

This is a presentation property whose default value is "Remember Me".

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type result[read-only]

Represents the result of the last completed request.

To obtain result values when the request is finished, use the following functions:
See also:

bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

bb::system::SystemUiReturnKeyAction::Type returnKeyAction

Represents the action associated with the return key for this prompt.

This a presentation property whose default value is bb::system::SystemUiReturnKeyAction::Default.
See also:

bb::system::SystemUiReturnKeyAction for the list of possible values.

Since:

BlackBerry 10.0.0

QString title

Represents the title of the window.

This is a presentation property whose default value is a default-constructed QString.

Since:

BlackBerry 10.0.0

Public Functions

SystemPrompt (

Constructs a new instance of a prompt.

Parameters
parent

If not 0, the supplied parent will be responsible for deleting this instance.

Since:

BlackBerry 10.0.0

virtual~SystemPrompt ()

Destructor.

Since:

BlackBerry 10.0.0

bool activityIndicatorVisible ()

Indicates if an activity indicator is displayed on the title bar of the dialog.

Return:

true if the activity indicator is displayed, false otherwise.

Since:

BlackBerry 10.2.0

QString body ()

Retrieves the main text of the prompt.

Return:

The text of the prompt.

Since:

BlackBerry 10.0.0

int buttonAreaLimit ()

The maximum number of buttons that can be shown without causing an overflow.

If buttonAreaLimit is larger than the number of buttons that will be displayed, all buttons will be stacked vertically.
Return:

The limit for the number of buttons that can be accommodated in the button area, or -1 if system defaults should be used.

Since:

BlackBerry 10.0.0

Q_INVOKABLE bb::system::SystemUiButton * buttonSelection ()

Returns the button that was selected when a button selection is made.

If no button was selected, 0 is returned.

This function returns the result of the button selection of show() and exec().

The return value is reset when a new request is made.

This instance retains ownership of the returned value.
Return:

The button selected by the user.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * cancelButton ()

Retrieves the prompt's cancel button.

This instance retains ownership of the returned value.
Return:

The prompt's cancellation button.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * confirmButton ()

Retrieves the prompt's confirmation button.

This instance retains ownership of the returned value.
Return:

The prompt's confirmation button.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * customButton ()

Retrieves the button attached to the prompt's custom action button.

This instance retains ownership of the returned value.
Return:

The prompt's custom action button.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * defaultButton ()

Retrieves the prompt's default button.

This instance retains ownership of the returned value.

The default button is automatically selected when the user triggers the return key action. If the default button is NULL, no button will be automatically selected.

The returned value will be one of the buttons managed by this instance, or NULL.
Return:

The prompt's default button.

Since:

BlackBerry 10.0.0

bool dismissAutomatically ()

Indicates if the prompt is dismissed when a button is selected.

Return:

true if selecting a button dismisses the prompt, false otherwise.

Since:

BlackBerry 10.0.0

bool emoticonsEnabled ()

Retrieves whether the text can be displayed with emoticons.

Return:

Whether the prompt supports emoticons.

Since:

BlackBerry 10.0.0

bb::system::SystemUiError::Type error ()

Retrieves the error that occurred during the request.

The return value will be reset when a new request is made.
Return:

The error that occurred. See bb::system::SystemUiError for the list of possible errors.

Since:

BlackBerry 10.0.0

bool includeRememberMe ()

Retrieves the flag indicating if a toggle switch to remember user selection and input should be included in the prompt.

Return:

true if a toggle for remembering the user selection should be included in the prompt, false otherwise.

Since:

BlackBerry 10.0.0

bb::system::SystemUiInputField * inputField ()

Retrieves the input field for the prompt.

This instance retains ownership of the returned value.
Return:

The prompt's input field.

Since:

BlackBerry 10.0.0

Q_INVOKABLE QString inputFieldTextEntry ()

Returns the value of the input field when a button is selected.

The return value will be reset when a new request is made.

Return:

The value of the input field.

Since:

BlackBerry 10.0.0

bb::system::SystemUiInputOption::Types inputOptions ()

Retrieves the current inputOptions for the inputField.

Return:

The prompt's input options.

Since:

BlackBerry 10.2.0

bool isAutoUpdateEnabled ()

Retrieves the flag indicating if the dialog will be updated every time the value of a presentation property is changed.

Return:

true if the dialog automatically updates, false if the dialog doesn't update (in which case the show() method must be called after updating the dialog presentation properties).

Since:

BlackBerry 10.2.0

bb::system::SystemUiModality::Type modality ()

Retrieves the prompt's modality.

Return:

The prompt's modality. See bb::system::SystemUiModality for the list of possible values.

Since:

BlackBerry 10.0.0

bool rememberMeChecked ()

Retrieves whether the toggle switch for includeRememberMe will be selected by default.

To obtain the user selection, use rememberMeSelection() instead.
Return:

true if the toggle should be selected by default, false otherwise.

Since:

BlackBerry 10.0.0

Q_INVOKABLE bool rememberMeSelection ()

Returns the state of the toggle for remembering user selection and input when the user dismisses the prompt.

Return:

true if the toggle for remembering the user selection was checked, false otherwise.

Since:

BlackBerry 10.0.0

QString rememberMeText ()

Retrieves the text associated with the the toggle switch for includeRememberMe.

Return:

The text for the toggle for includeRememberMe.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetActivityIndicatorVisible ()

Resets the dialog's activityIndicatorVisible property to its default value.

Since:

BlackBerry 10.2.0

Q_INVOKABLE void resetAutoUpdateEnabled ()

Resets the autoUpdateEnabled flag to false.

Since:

BlackBerry 10.2.0

Q_INVOKABLE void resetBody ()

Resets the main text of the prompt to QString::null.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetButtonAreaLimit ()

Resets the maximum number of buttons to accommodate in the prompt button area without overflow to -1.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetCancelButton ()

Resets the cancellation button for this prompt.

When the cancellation button is reset, its label will be set to the default value of "Cancel".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetConfirmButton ()

Resets the confirmation button for this prompt.

When the confirmation button is reset, its label will be set to the default value of "OK".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetCustomButton ()

Resets the custom action button for this prompt.

When the button resets, its label will be a default-constructed QString so this button will be omitted when making show() and exec() requests.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetDefaultButton ()

Resets the default button for this prompt to confirmButton.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetDismissAutomatically ()

Resets whether the prompt is dismissed when a button is selected to true.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetEmoticonsEnabled ()

Resets whether the text can display emoticons to false.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetIncludeRememberMe ()

Resets the flag to show the toggle for remembering user selection and input to false.

To reset the selection state for the toggle, use resetRememberMeChecked().

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetInputField ()

Resets the input field for this prompt.

All properties of the input field will be reset.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetInputOptions ()

Resets the inputOptions of the dialog's inputField.

Q_INVOKABLE void resetModality ()

Resets the modality of the prompt to bb::system::SystemUiModality::Application.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetRememberMeChecked ()

Resets the selection state for the toggle switch for includeRememberMe to true.

To reset whether to include the toggle switch use resetIncludeRememberMe().

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetRememberMeText ()

Resets the text for the toggle switch for includeRememberMe to "Remember Me".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetReturnKeyAction ()

Resets the return key action of the prompt to bb::system::SystemUiReturnKeyAction::Default.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetTitle ()

Resets the title of the prompt to QString::null.

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type result ()

Retrieves the result of the last completed request.

If no request has been made, or if a request is pending, bb::system::SystemUiResult::None is returned.
Return:

The result of the last completed request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

bb::system::SystemUiReturnKeyAction::Type returnKeyAction ()

Retrieves the prompt's return key action.

Return:

The prompt's return key action.

Since:

BlackBerry 10.0.0

void setActivityIndicatorVisible (
  • boolvisible)

Sets whether an activity indicator is displayed on the title bar of the dialog.

Parameters
visible

true if the dialog will display an activity indicator, false otherwise.

Since:

BlackBerry 10.2.0

void setAutoUpdateEnabled (
  • boolupdate)

Sets the autoUpdateEnabled flag of the dialog.

Parameters
update

true if the dialog will update automatically, false if the dialog will not update automatically (in which case the show() method must be called after updating the dialog presentation properties).

Since:

BlackBerry 10.2.0

void setBody (

Sets the main text of the prompt.

Parameters
body

The new text of the prompt.

Since:

BlackBerry 10.0.0

void setButtonAreaLimit (
  • intnewButtonAreaLimit)

Sets the maximum number of buttons to accommodate in the prompt button area without overflow.

Values outside the range [1,3] will reset the property to its default value, -1. If newButtonAreaLimit is smaller than the number of buttons that will be displayed, all buttons will be stacked vertically.
Parameters
newButtonAreaLimit

The maximum number of buttons in the button area.

Since:

BlackBerry 10.0.0

void setDefaultButton (

Sets the prompt's default button.

newDefaultButton must be one of the buttons managed by this instance, or NULL. If NULL is specified, then no button will be associated with the return key action.

If a non-managed button is specified, then this property is undefined.
Parameters
newDefaultButton

The button to associate with the return key action.

Since:

BlackBerry 10.0.0

void setDismissAutomatically (
  • boolautomaticDismissal)

Sets whether the prompt is dismissed when a button is selected.

Parameters
automaticDismissal

true if the prompt should be automatically dismissed on a button press, false otherwise.

Since:

BlackBerry 10.0.0

void setEmoticonsEnabled (
  • boolnewEmoticonsEnabled)

Sets whether the text can be displayed as emoticons.

Parameters
newEmoticonsEnabled

Whether the prompt supports emoticons.

Since:

BlackBerry 10.0.0

void setIncludeRememberMe (
  • boolvalue)

Sets the flag indicating if a toggle switch for remembering user selection should be included in the prompt.

Parameters
value

true if a toggle for remembering user selection should be included, false otherwise.

Since:

BlackBerry 10.0.0

void setInputOptions (
  • bb::system::SystemUiInputOption::Typesoptions)

Sets the options for the dialog's inputField.

Parameters
options

New input options. See bb::system::SystemUiInputOption for a list of possible options.

Since:

BlackBerry 10.2.0

void setModality (

Sets the modality for the prompt.

Parameters
newModality

The new modality preference. See bb::system::SystemUiModality for the list of possible values.

Since:

BlackBerry 10.0.0

void setRememberMeChecked (
  • boolnewRememberMeSelected)

Sets whether the toggle switch for includeRememberMe will be selected by default.

Parameters
newRememberMeSelected

true if the toggle should be selected by default, false otherwise.

Since:

BlackBerry 10.0.0

void setRememberMeText (

Sets the text associated with the the toggle switch for includeRememberMe.

Parameters
newRememberMeText

The new text for the toggle for includeRememberMe.

Since:

BlackBerry 10.0.0

void setReturnKeyAction (

Sets the return key action for the prompt.

Parameters
newReturnKeyAction

The new return key action.

Since:

BlackBerry 10.0.0

void setTitle (

Sets the title for the prompt.

Parameters
title

The new title of the prompt.

Since:

BlackBerry 10.0.0

QString title ()

Retrieves the title for the prompt.

Return:

The title of the prompt.

Since:

BlackBerry 10.0.0

Public Slots

void cancel ()

Cancels the prompt if it is currently being displayed.

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type exec ()

Displays the prompt based on current property values.

The result of the request can be retrieved with the SystemPrompt::result property, or using the signal finished(). The text can be retrieved with the inputFieldTextEntry() method. The button selection can be retrieved with the buttonSelection() method.

Unlike show(), this function will block until a button selection is made. If the dialog is already on the screen, this method will return immediately with bb::system::SystemUiResult::DialogCannotBlock.

Note:
Blocking occurs by starting a nested QEventLoop. To use this method safely, the following conditions must be met:
  • Any connections to this slot must use a Qt::QueuedConnection, or the slot must be triggered using QTimer::singleShot(), and

  • QObject::deleteLater() must be used in place of delete when deleting the prompt object. If these conditions are not met, unexpected behavior may result.

Return:

The result of the request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

void show ()

Displays a prompt based on the current property values.

The result of the request can be retrieved with the result property or via the signal finished(). The text can be retrieved with the inputFieldTextEntry() method. The button selection can be retrieved with the buttonSelection() method.

Control is returned to the caller immediately. For a blocking request, use exec().

Since:

BlackBerry 10.0.0

void update ()

Updates an on-screen prompt dialog based on the current property values.

If the dialog is not on screen, this method returns immediately and no changes are made to the dialog.

Since:

BlackBerry 10.2.0

Signals

void activityIndicatorVisibleChanged (
  • boolvalue)

Emitted when the activityIndicatorVisible property is changed programmatically.

Parameters
value

The new value of the activityIndicatorVisible property.

Since:

BlackBerry 10.2.0

void autoUpdateEnabledChanged (
  • boolvalue)

Emitted when the autoUpdateEnabled property is changed programmatically.

Parameters
value

The new value of the autoUpdateEnabled property.

Since:

BlackBerry 10.2.0

void bodyChanged (

Emitted when the body property is changed programmatically.

Parameters
value

The new value of the body property.

Since:

BlackBerry 10.0.0

void buttonAreaLimitChanged (
  • intnewButtonAreaLimit)

Emitted when the buttonAreaLimit property is changed programmatically.

Parameters
newButtonAreaLimit

The new value of the buttonAreaLimit property.

Since:

BlackBerry 10.0.0

void defaultButtonChanged (

Emitted when the defaultButton property is changed programmatically.

Parameters
newDefaultButton

The new value of the defaultButton property, or NULL if none is set.

Since:

BlackBerry 10.0.0

void dismissAutomaticallyChanged (
  • boolautomaticDismissal)

Emitted when the dismissAutomatically property is changed programmatically.

Parameters
automaticDismissal

The new value of the dismissAutomatically property.

Since:

BlackBerry 10.0.0

void emoticonsEnabledChanged (
  • boolnewEmoticonsEnabled)

Emitted when the emoticonsEnabled property is changed programmatically.

Parameters
newEmoticonsEnabled

The new value of the emoticonsEnabled property.

Since:

BlackBerry 10.0.0

void finished (

Emitted when a request is completed.

The text can be retrieved with the inputFieldTextEntry() method. The button selection can be retrieved with buttonSelection(). The state of the toggle for remembering the content of this prompt can be retrieved using rememberMeSelection().
Parameters
value

The result of the request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

void includeRememberMeChanged (
  • boolvalue)

Emitted when the includeRememberMe property is changed programmatically.

Parameters
value

The new value of the includeRememberMe property.

Since:

BlackBerry 10.0.0

void inputOptionsChanged (
  • bb::system::SystemUiInputOption::TypesnewOptions)

Emitted when the inputOptions property is changed programmatically.

Parameters
newOptions

The new value of the inputOptions property. See bb::system::SystemUiInputOption for possible values.

Since:

BlackBerry 10.2.0

void modalityChanged (

Emitted when the modality property is changed programmatically.

Parameters
newModality

The new value of the modality property.

Since:

BlackBerry 10.0.0

void rememberMeCheckedChanged (
  • boolnewRememberMeSelected)

Emitted when the rememberMeChecked property is changed programmatically.

When the user dismisses the prompt, the user selection is available via rememberMeSelection().
Parameters
newRememberMeSelected

The new value of the rememberMeChecked property.

Since:

BlackBerry 10.0.0

void rememberMeTextChanged (

Emitted when the rememberMeText property is changed programmatically.

Parameters
newRememberMeText

The new value of the rememberMeText property.

Since:

BlackBerry 10.0.0

void returnKeyActionChanged (

Emitted when the returnKeyAction property is changed programmatically.

Parameters
newReturnKeyAction

The new value of the returnKeyAction property.

Since:

BlackBerry 10.0.0

void titleChanged (

Emitted when the title property is changed programmatically.

Parameters
value

The new value of the title property.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus