Truy cập vào bảng điều khiển

FirebaseRemoteModel.Builder

public static class FirebaseRemoteModel.Builder extends Object

Public Constructor Summary

FirebaseRemoteModel.Builder(String modelName)
Creates a builder for FirebaseRemoteModel.

Public Method Summary

FirebaseRemoteModel
build()
Builds an instance of FirebaseRemoteModel
FirebaseRemoteModel.Builder
enableModelUpdates(boolean enableModelUpdates)
Enables the download of model updates.
FirebaseRemoteModel.Builder
setInitialDownloadConditions(FirebaseModelDownloadConditions initialConditions)
Sets the conditions for initial model download.
FirebaseRemoteModel.Builder
setUpdatesDownloadConditions(FirebaseModelDownloadConditions updatesConditions)
Sets the conditions for downloading the model updates.

Inherited Method Summary

Public Constructors

public FirebaseRemoteModel.Builder (String modelName)

Creates a builder for FirebaseRemoteModel.

Parameters
modelName the model name as specified in Firebase Console.

Public Methods

public FirebaseRemoteModel build ()

Builds an instance of FirebaseRemoteModel

public FirebaseRemoteModel.Builder enableModelUpdates (boolean enableModelUpdates)

Enables the download of model updates.

If false, SDK still downloads the first model under initial download conditions, but will not update the model further.

If true, the SDK checks for model updates and downloads the model even if there is already a downloaded model.

Model updates are enabled by default.

public FirebaseRemoteModel.Builder setInitialDownloadConditions (FirebaseModelDownloadConditions initialConditions)

Sets the conditions for initial model download.

public FirebaseRemoteModel.Builder setUpdatesDownloadConditions (FirebaseModelDownloadConditions updatesConditions)

Sets the conditions for downloading the model updates. Note the conditions will be ignored unless model updates are enabled.