Storing a Confirmation State

Confirmation states can be used for "Don't Ask Again" style screens or dialogs. The confirmation states are stored using a UID object in the ConfirmationStore.

Accessing

To access a specific confirmation type you will pass the UID to ConfirmationStore.instance().get(UID).

The returned value will be one of:

  • ConfirmationStore.STATE_ALWAYS
  • ConfirmationStore.STATE_NEVER

Storing

To change the state call

ConfirmationStore.instance().put( getUid(), ConfirmationStore.STATE_NEVER );
ConfirmationStore.instance().commit();
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© 2011 Metova, Inc.