formatWithEncryption

Requests a format of the media with encryption.

Should be called only when media formatting is allowed.

When formatting starts, the current state becomes FORMATTING.

The formatting result is indicated with the transient state FORMATTING_SUCCEEDED, FORMATTING_FAILED, or FORMATTING_DENIED.

Return

false if the request was not sent to the device, for instance because the state is not NEED_FORMAT or READY, true otherwise

Parameters

password

requested password for encryption

type

requested formatting type

name

new name given to the media. If empty, the media name is set to the product name.