IssueCommandRequest.InstallCustomApp.Builder

public abstract class IssueCommandRequest.InstallCustomApp.Builder


IssueCommandRequest.InstallCustomApp 的建構工具。

摘要

公用方法

abstract IssueCommandRequest.InstallCustomApp
abstract IssueCommandRequest.InstallCustomApp.Builder

要安裝的應用程式套件名稱。

abstract IssueCommandRequest.InstallCustomApp.Builder

需要安裝的套件檔案 URI,格式為 `file:///`。

公用方法

build

public abstract IssueCommandRequest.InstallCustomApp build()

setPackageName

public abstract IssueCommandRequest.InstallCustomApp.Builder setPackageName(String value)

要安裝的應用程式套件名稱。

setPackageUri

public abstract IssueCommandRequest.InstallCustomApp.Builder setPackageUri(String value)

需要安裝的套件檔案 URI,格式為 `file:///`。

**注意:** apk 檔案應儲存在 [LocalCommandClient.InstallCustomAppCommand.getCustomApksStorageDirectory] 傳回的目錄中。如果檔案未儲存在正確的目錄中,指令就會失敗。呼叫端負責管理檔案的生命週期,並在執行指令後清除檔案。