retrieveLostData method
Retrieves any previously picked file, that was lost due to the MainActivity being destroyed. In case multiple files were lost, only the last file will be recovered. (Android only).
Image or video can be lost if the MainActivity is destroyed. And there is no guarantee that the MainActivity is always alive. Call this method to retrieve the lost data and process the data according to your APP's business logic.
Returns a LostData
object if successfully retrieved the lost data. The LostData
object can represent either a
successful image/video selection, or a failure.
Calling this on a non-Android platform will throw UnimplementedError exception.
See also:
LostData
, for what's included in the response.- Android Activity Lifecycle, for more information on MainActivity destruction.
Implementation
@Deprecated('Use getLostData instead.')
Future<LostData> retrieveLostData() {
throw UnimplementedError('retrieveLostData() has not been implemented.');
}