Skip to content

Most visited

Recently visited

Added in API level 1


public interface Destroyable
Known Indirect Subclasses

Allows for special treatment of sensitive information, when it comes to destroying or clearing of the data.


Public methods

abstract void destroy()

Erases the sensitive information.

abstract boolean isDestroyed()

Returns true once an object has been safely destroyed.

Public methods


Added in API level 1
void destroy ()

Erases the sensitive information. Once an object is destroyed any calls to its methods will throw an IllegalStateException. If it does not succeed a DestroyFailedException is thrown.

DestroyFailedException if the information cannot be erased.


Added in API level 1
boolean isDestroyed ()

Returns true once an object has been safely destroyed.

boolean whether the object has been safely destroyed.
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.