Language

MatchmakingRequest.Builder.SetIncludedDataSources Method

Definition

Sets the DataOrigins to be considered by matchmaking.

[Android.Runtime.Register("setIncludedDataSources", "(Ljava/util/Set;)Landroid/health/connect/MatchmakingRequest$Builder;", "", ApiSince=37)]
public Android.Health.Connect.MatchmakingRequest.Builder SetIncludedDataSources(System.Collections.Generic.ICollection<Android.Health.Connect.DataTypes.DataOrigin> dataOrigins);
[<Android.Runtime.Register("setIncludedDataSources", "(Ljava/util/Set;)Landroid/health/connect/MatchmakingRequest$Builder;", "", ApiSince=37)>]
member this.SetIncludedDataSources : System.Collections.Generic.ICollection<Android.Health.Connect.DataTypes.DataOrigin> -> Android.Health.Connect.MatchmakingRequest.Builder

Parameters

dataOrigins
ICollection<DataOrigin>

The data origins to include. An empty set means no specific data sources are included. This value cannot be null.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the DataOrigins to be considered by matchmaking. Only data sources in this set will be considered; data sources not in this set will be excluded. Providing an empty set means no specific data sources are included, effectively allowing all data sources to be considered (unless excluded by setExcludedDataSources(Set).

By default, if neither setIncludedDataSources(Set) nor setExcludedDataSources(Set) are called, all available data sources will be considered.

Android reference for android.health.connect.MatchmakingRequest.Builder.setIncludedDataSources.

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