ChooserTargetService.OnGetChooserTargets(ComponentName, IntentFilter) 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.
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
a list of deep-link targets to fulfill the intent match, sorted by relevance
- Attributes
Remarks
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.