Language

MatchmakingRequest.Builder.SetExcludedDataSources Method

Definition

Sets the DataOrigins to be excluded from matchmaking.

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

Parameters

dataOrigins
ICollection<DataOrigin>

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

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the DataOrigins to be excluded from matchmaking. Data sources in this set will not be considered. Providing an empty set means no specific data sources are excluded, effectively allowing all data sources to be considered (unless included by setIncludedDataSources(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.setExcludedDataSources.

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