pub struct LaunchFilesInAppParams {
pub manifest_id: String,
pub files: Vec<String>,
}
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. launchFilesInApp
Fields§
§manifest_id: String
§files: Vec<String>
Implementations§
Source§impl LaunchFilesInAppParams
impl LaunchFilesInAppParams
pub fn builder() -> LaunchFilesInAppParamsBuilder
Source§impl LaunchFilesInAppParams
impl LaunchFilesInAppParams
pub const IDENTIFIER: &'static str = "PWA.launchFilesInApp"
Trait Implementations§
Source§impl Clone for LaunchFilesInAppParams
impl Clone for LaunchFilesInAppParams
Source§fn clone(&self) -> LaunchFilesInAppParams
fn clone(&self) -> LaunchFilesInAppParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Command for LaunchFilesInAppParams
impl Command for LaunchFilesInAppParams
Source§impl Debug for LaunchFilesInAppParams
impl Debug for LaunchFilesInAppParams
Source§impl<'de> Deserialize<'de> for LaunchFilesInAppParams
impl<'de> Deserialize<'de> for LaunchFilesInAppParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchFilesInAppParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Method for LaunchFilesInAppParams
impl Method for LaunchFilesInAppParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode