Lingua

IOnBackInvokedDispatcher.RegisterOnBackInvokedCallback Metodo

Definizione

Registra un oggetto OnBackInvokedCallback.

[Android.Runtime.Register("registerOnBackInvokedCallback", "(ILandroid/window/OnBackInvokedCallback;)V", "GetRegisterOnBackInvokedCallback_ILandroid_window_OnBackInvokedCallback_Handler:Android.Window.IOnBackInvokedDispatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public void RegisterOnBackInvokedCallback(int priority, Android.Window.IOnBackInvokedCallback callback);
[<Android.Runtime.Register("registerOnBackInvokedCallback", "(ILandroid/window/OnBackInvokedCallback;)V", "GetRegisterOnBackInvokedCallback_ILandroid_window_OnBackInvokedCallback_Handler:Android.Window.IOnBackInvokedDispatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member RegisterOnBackInvokedCallback : int * Android.Window.IOnBackInvokedCallback -> unit

Parametri

priority
Int32

Priorità del callback.

callback
IOnBackInvokedCallback

Callback da registrare. Se l'istanza di callback è già stata registrata, l'istanza esistente (indipendentemente dalla priorità) verrà annullata e registrata di nuovo.

Attributi

Commenti

Registra un oggetto OnBackInvokedCallback.

Nello stesso livello di priorità, i callback vengono richiamati nell'ordine inverso in cui vengono registrati. I callback con priorità più alta vengono richiamati prima di quelli con priorità più bassa.

per android.window.OnBackInvokedDispatcher.registerOnBackInvokedCallback(int, android.window.OnBackInvokedCallback).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a