Struct android_tools::aapt2::Aapt2Dump
source · [−]pub struct Aapt2Dump { /* private fields */ }
Expand description
Dump
Dump is used for printing information about the APK you generated using the link command. For example, the following command prints content from the resource table of the specified APK:
`aapt2 dump resources output.apk`
Dump syntax
The general syntax for using dump is as follows:
`aapt2 dump sub-command filename.apk [options]`
Implementations
sourceimpl Aapt2Dump
impl Aapt2Dump
sourcepub fn new(subcommand: SubCommand, filename_apk: &Path) -> Self
pub fn new(subcommand: SubCommand, filename_apk: &Path) -> Self
Initialize aapt2 dump then specifies subcommand and apk file
sourcepub fn no_values(&mut self, no_values: bool) -> &mut Self
pub fn no_values(&mut self, no_values: bool) -> &mut Self
Suppresses the output of values when displaying resource
sourcepub fn dumped_file(&mut self, dumped_file: &Path) -> &mut Self
pub fn dumped_file(&mut self, dumped_file: &Path) -> &mut Self
Specifies a file as an argument to be dumped from the APK
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Aapt2Dump
impl Send for Aapt2Dump
impl Sync for Aapt2Dump
impl Unpin for Aapt2Dump
impl UnwindSafe for Aapt2Dump
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more