Skip to content

Latest commit

 

History

History
169 lines (86 loc) · 3.77 KB

File metadata and controls

169 lines (86 loc) · 3.77 KB

@appzung/react-native-code-push v11.0.0-rc3


@appzung/react-native-code-push / RemotePackage

Interface: RemotePackage

Represents an available update on the CodePush server that hasn't been downloaded yet.

Extends

Properties

appVersion

appVersion: string

The app binary version that this update is dependent on. This is the value that was specified via the --target-binary-version parameter when calling the CLI's release command.

Inherited from

Package.appVersion


description

description: string

The description of the update. This is the same value that you specified in the CLI when you released the update.

Inherited from

Package.description


downloadUrl

downloadUrl: string

The URL at which the package is available for download.

This property is only needed for advanced usage, since the download method will automatically handle the acquisition of updates for you.


failedInstall

failedInstall: boolean

Indicates whether this update has been previously installed but was rolled back.

The sync method will automatically ignore updates which have previously failed, so you only need to worry about this property if using checkForUpdate.

Inherited from

Package.failedInstall


isFirstRun

isFirstRun: boolean

Indicates whether this is the first time the update has been run after being installed.

This is useful for determining whether you would like to show a "What's New?" UI to the end user after installing an update.

Inherited from

Package.isFirstRun


isMandatory

isMandatory: boolean

Indicates whether the update is considered mandatory. This is the value that was specified in the CLI when the update was released.

Inherited from

Package.isMandatory


isPending

isPending: boolean

Indicates whether this update is in a "pending" state. When true, that means the update has been downloaded and installed, but the app restart needed to apply it hasn't occurred yet, and therefore, its changes aren't currently visible to the end-user.

Inherited from

Package.isPending


label

label: string

The internal label automatically given to the update by the CodePush server. This value uniquely identifies the update within its release channel.

Inherited from

Package.label


packageHash

packageHash: string

The SHA hash value of the update.

Inherited from

Package.packageHash


packageSize

packageSize: number

The size of the code contained within the update, in bytes.

Inherited from

Package.packageSize


releaseChannelPublicId

releaseChannelPublicId: string

The release channel public ID that was used to originally download this update.

Inherited from

Package.releaseChannelPublicId

Methods

download()

download(downloadProgressCallback?): Promise<LocalPackage>

Downloads the available update from the CodePush service.

Parameters

downloadProgressCallback?

DownloadProgressCallback

An optional callback that allows tracking the progress of the update while it is being downloaded.

Returns

Promise<LocalPackage>