pub async fn check<R: Runtime>(
app: AppHandle<R>,
config: State<'_, Config>,
pending_update: State<'_, PendingUpdateInfo>,
) -> Result<Option<UpdateMetadata>, String>Expand description
Checks the GitHub releases of the configured repository for a version
newer than the installed one, mirroring the check command of
tauri-plugin-updater.
Returns the update metadata when a newer release exists and stores it as
the pending update for download_and_install, or None when the app is
up to date.
Registered by the plugin under the plugin:android-update|check name;
the app must grant the plugin’s default permission.