ChooserTargetService.OnGetChooserTargets(ComponentName, IntentFilter) Method

Definition

Called by the system to retrieve a set of deep-link ChooserTarget targets that can handle an intent.

[Android.Runtime.Register("onGetChooserTargets", "(Landroid/content/ComponentName;Landroid/content/IntentFilter;)Ljava/util/List;", "GetOnGetChooserTargets_Landroid_content_ComponentName_Landroid_content_IntentFilter_Handler", ApiSince=23)]
public abstract System.Collections.Generic.IList<Android.Service.Chooser.ChooserTarget>? OnGetChooserTargets (Android.Content.ComponentName? targetActivityName, Android.Content.IntentFilter? matchedFilter);
[<Android.Runtime.Register("onGetChooserTargets", "(Landroid/content/ComponentName;Landroid/content/IntentFilter;)Ljava/util/List;", "GetOnGetChooserTargets_Landroid_content_ComponentName_Landroid_content_IntentFilter_Handler", ApiSince=23)>]
abstract member OnGetChooserTargets : Android.Content.ComponentName * Android.Content.IntentFilter -> System.Collections.Generic.IList<Android.Service.Chooser.ChooserTarget>

Parameters

targetActivityName
ComponentName

the ComponentName of the matched activity that referred the system to this ChooserTargetService

matchedFilter
IntentFilter

the specific IntentFilter on the component that was matched

Returns

IList<ChooserTarget>

a list of deep-link targets to fulfill the intent match, sorted by relevance

Attributes

Remarks

Java documentation for android.service.chooser.ChooserTargetService.onGetChooserTargets(android.content.ComponentName, android.content.IntentFilter).

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.

Applies to