ManifestEditor class

Android Manifest-specific editor.

Inheritance

Constructors

ManifestEditor(String source)
Default constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPermission({required String name, List<String>? comments, RemoveComment? removeCommentsOnUpdate, List<XmlElementInfo> extraTags = const [], int? maxSdkVersion}) → void
Adds a permission to the manifest.
getInsertionAnchor(XmlInsertElementEdit insert) → (int, String)
Determines the insertion anchor point for the given insert operation. Returns a tuple of (anchor index, indent string).
inherited
getPermissions() List<ManifestPermissionEntry>
Parses and returns a list of all permissions currently in the manifest.
insert(XmlInsertElementEdit insert) → void
Inserts a new element based on the provided insert definition.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(XmlRemoveElementEdit remove) bool
Removes an element based on the provided remove definition.
inherited
removePermission({required String name, RemoveComment? removeComments}) → void
Removes a permission from the manifest by name.
save(File file) bool
Saves the current XML content to the specified file. Returns true if successful, false otherwise.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited