All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.xx2bab.polyfill.arsc.export.IResArscTweaker.kt Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
package me.xx2bab.polyfill.arsc.export

import java.io.File
import java.io.IOException

/**
 * The export api for resource.arsc tool.
 */
interface IResArscTweaker {

    /**
     * To load the arsc file into tweaker.
     * @param
     */
    @Throws(IOException::class)
    fun read(source: File)

    /**
     * To write a new arsc file to specify file.
     * @param
     */
    @Throws(IOException::class)
    fun write(dest: File)

    /**
     * @return Return types with 
     */
    fun getResourceTypes(): Map

    /**
     * @param id resource ID
     * @return SimpleResource instance or null
     */
    fun findResourceById(id: Int): List

    /**
     * @param id resource ID
     * @return SimpleResource instance or null
     */
    fun removeResourceById(id: Int): Boolean

    fun updateResourceById(resource: SimpleResource,
                           config: SupportedResConfig): Boolean

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy