GlobalSearchSession.UnregisterObserverCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes previously registered ObserverCallback instances from the system.
[Android.Runtime.Register("unregisterObserverCallback", "(Ljava/lang/String;Landroid/app/appsearch/observer/ObserverCallback;)V", "GetUnregisterObserverCallback_Ljava_lang_String_Landroid_app_appsearch_observer_ObserverCallback_Handler", ApiSince=33)]
public virtual void UnregisterObserverCallback(string targetPackageName, Android.App.AppSearch.Observers.IObserverCallback observer);
[<Android.Runtime.Register("unregisterObserverCallback", "(Ljava/lang/String;Landroid/app/appsearch/observer/ObserverCallback;)V", "GetUnregisterObserverCallback_Ljava_lang_String_Landroid_app_appsearch_observer_ObserverCallback_Handler", ApiSince=33)>]
abstract member UnregisterObserverCallback : string * Android.App.AppSearch.Observers.IObserverCallback -> unit
override this.UnregisterObserverCallback : string * Android.App.AppSearch.Observers.IObserverCallback -> unit
Parameters
- targetPackageName
- String
Package which the observers to be removed are listening to.
- observer
- IObserverCallback
Callback to unregister.
- Attributes
Remarks
Removes previously registered ObserverCallback instances from the system.
All instances of ObserverCallback which are registered to observe targetPackageName and compare equal to the provided callback using the provided argument's ObserverCallback#equals will be removed.
If no matching observers have been registered, this method has no effect. If multiple matching observers have been registered, all will be removed.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.