pub struct LaunchFilesInAppReturns<'a> { /* private fields */ }Expand description
Opens one or more local files from an installed web app identified by its manifestId. The web app needs to have file handlers registered to process the files. The API returns one or more page Target.TargetIDs which can be used to attach to via Target.attachToTarget or similar APIs. If some files in the parameters cannot be handled by the web app, they will be ignored. If none of the files can be handled, this API returns an error. If no files are provided as the parameter, this API also returns an error.
According to the definition of the file handlers in the manifest file, one Target.TargetID may represent a page handling one or more files. The order of the returned Target.TargetIDs is not guaranteed.
TODO(crbug.com/339454034): Check the existences of the input files.
Implementations§
Source§impl<'a> LaunchFilesInAppReturns<'a>
impl<'a> LaunchFilesInAppReturns<'a>
Sourcepub fn builder(
target_ids: Vec<TargetID<'a>>,
) -> LaunchFilesInAppReturnsBuilder<'a>
pub fn builder( target_ids: Vec<TargetID<'a>>, ) -> LaunchFilesInAppReturnsBuilder<'a>
Creates a builder for this type with the required parameters:
target_ids: IDs of the tab targets created as the result.
Sourcepub fn target_ids(&self) -> &[TargetID<'a>] ⓘ
pub fn target_ids(&self) -> &[TargetID<'a>] ⓘ
IDs of the tab targets created as the result.
Trait Implementations§
Source§impl<'a> Clone for LaunchFilesInAppReturns<'a>
impl<'a> Clone for LaunchFilesInAppReturns<'a>
Source§fn clone(&self) -> LaunchFilesInAppReturns<'a>
fn clone(&self) -> LaunchFilesInAppReturns<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more