pub enum DataProviderRequest {
GetSnapshot {
params: GetSnapshotParameters,
responder: DataProviderGetSnapshotResponder,
},
GetScreenshot {
encoding: ImageEncoding,
responder: DataProviderGetScreenshotResponder,
},
GetAnnotations {
params: GetAnnotationsParameters,
responder: DataProviderGetAnnotationsResponder,
},
}
Expand description
Provides data useful to attach to feedback reports, e.g., a crash report filed by the system, a user feedback report filed by a user or a bug report filed by a developer.
Variants§
GetSnapshot
Returns a snapshot of the device’s state.
snapshot
may be empty if there was an issue generating the snapshot.
GetScreenshot
Returns an image of the current view encoded in the provided encoding
.
screenshot
may be null if the encoding is not supported, the device does not have a
display, or there is not enough memory to allocate the screenshot image.
The screenshot is provided separately from the snapshot as callers might want to block on this call before changing the view while collecting a snapshot in the background is fine. There are also a lot of clients that are not interested in the screenshot.
GetAnnotations
Returns a set of annotations about the device’s state.
annotations
may be empty if there was an issue collecting them.
These are the same annotations as provided through GetSnapshot() - some clients only want the annotations while others want both the annotations and the snapshot and generating the snapshot can take significantly more time than collecting the annotations, e.g., logs are only part of the snapshot and not part of the annotations and can take some time.
Implementations§
Source§impl DataProviderRequest
impl DataProviderRequest
pub fn into_get_snapshot( self, ) -> Option<(GetSnapshotParameters, DataProviderGetSnapshotResponder)>
pub fn into_get_screenshot( self, ) -> Option<(ImageEncoding, DataProviderGetScreenshotResponder)>
pub fn into_get_annotations( self, ) -> Option<(GetAnnotationsParameters, DataProviderGetAnnotationsResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL