Skip to content

Interface: ExpofpViewModuleMethods

Defined in: types.ts:11

Interface for the ExpoFP View Module methods. These methods are available on the native module level.

Methods

downloadPlan()

downloadPlan(expoKey): Promise<string>

Defined in: types.ts:37

Downloads a plan for the given Expo key.

Parameters

expoKey

string

The Expo key of the plan to download.

Returns

Promise<string>

A promise that resolves with the result of the download operation.


getDownloadedPlansInfo()

getDownloadedPlansInfo(expoKey): Promise<ExpoFpDownloadedPlanInfo[]>

Defined in: types.ts:49

Gets information about downloaded plans.

Parameters

expoKey

Optional Expo key to filter the results.

string | null

Returns

Promise<ExpoFpDownloadedPlanInfo[]>

A promise that resolves with an array of downloaded plan info.


getPreloadedPlansInfo()

getPreloadedPlansInfo(): Promise<ExpoFpPreloadedPlanInfo[]>

Defined in: types.ts:22

Gets information about all preloaded plans.

Returns

Promise<ExpoFpPreloadedPlanInfo[]>

A promise that resolves with an array of preloaded plan info.


preloadPlan()

preloadPlan(settings): Promise<string>

Defined in: types.ts:17

Preloads a plan with the given settings.

Parameters

settings

Partial<ExpofpViewSettings>

The settings to use for preloading the plan.

Returns

Promise<string>

A promise that resolves with the result of the preload operation.


removeAllDownloadedPlans()

removeAllDownloadedPlans(): void

Defined in: types.ts:65

Removes all downloaded plans.

Returns

void


removeAllPreloadedPlans()

removeAllPreloadedPlans(): void

Defined in: types.ts:31

Removes all preloaded plans.

Returns

void


removeDownloadedPlan()

removeDownloadedPlan(downloadedPlanInfo): void

Defined in: types.ts:61

Removes a specific downloaded plan.

Parameters

downloadedPlanInfo

ExpoFpDownloadedPlanInfo

The info of the downloaded plan to remove.

Returns

void


removeOldVersionsOfDownloadedPlans()

removeOldVersionsOfDownloadedPlans(expoKey): void

Defined in: types.ts:56

Removes old versions of downloaded plans.

Parameters

expoKey

Optional Expo key to filter the removal.

string | null

Returns

void


removePreloadedPlan()

removePreloadedPlan(preloadedId): void

Defined in: types.ts:27

Removes a specific preloaded plan.

Parameters

preloadedId

string

The ID of the preloaded plan to remove.

Returns

void


unzipPlan()

unzipPlan(resourceName): Promise<string>

Defined in: types.ts:43

Unzips a plan from a local resource.

Parameters

resourceName

string

The name of the resource to unzip.

Returns

Promise<string>

A promise that resolves with the result of the unzip operation.