setZip

Sets the URI to the Distribution packet (ZIP) or to a ZIP file matching the deprecated naming convention.

Return

the builder

Parameters

uri

the URI of the file

See also


Sets the path to the Distribution packet (ZIP) or the a ZIP file matching the deprecated naming convention.

Return

the builder

Parameters

path

path to the file

See also


open fun setZip(@RawRes rawResId: Int): DfuServiceInitiator

Sets the resource ID of the Distribution packet (ZIP) or the a ZIP file matching the deprecated naming convention. The file should be in the /res/raw folder.

Return

the builder

Parameters

rawResId

file's resource ID

See also


Sets the URI or path of the ZIP file. At least one of the parameters must not be null. If the URI and path are not null the URI will be used.

Return

the builder

Parameters

uri

the URI of the file

path

the path of the file