Langue

IOnBackInvokedDispatcher.RegisterOnBackInvokedCallback Méthode

Définition

Inscrit un 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

Paramètres

priority
Int32

Priorité du rappel.

callback
IOnBackInvokedCallback

Rappel à inscrire. Si l’instance de rappel a déjà été inscrite, l’instance existante (quelle que soit sa priorité) n’est pas inscrite et réinscrira.

Attributs

Remarques

Inscrit un OnBackInvokedCallback.

Dans le même niveau de priorité, les rappels sont appelés dans l’ordre inverse dans lequel ils sont inscrits. Les rappels de priorité supérieure sont appelés avant les rappels de priorité inférieure.

Java documentation pour android.window.OnBackInvokedDispatcher.registerOnBackInvokedCallback(int, android.window.OnBackInvokedCallback).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à