# ApplicationSessionTagMatcher

# ApplicationSessionTagMatcher

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/ApplicationSessionTagMatcher "View this page in Kotlin")\|Java

<br />

```
@RequiresApi(value = 26) interface ApplicationSessionTagMatcher
```

<br />

Known direct subclasses  
[ExactSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ExactSessionTagMatcher),[MatchEverythingSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/MatchEverythingSessionTagMatcher)  

|------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExactSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ExactSessionTagMatcher)                     | An[ApplicationSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTagMatcher)that matches[ApplicationSessionTag](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTag)objects when their[ApplicationSessionTag.sessionTag](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTag#sessionTag())strings are the same. |
| [MatchEverythingSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/MatchEverythingSessionTagMatcher) | An[ApplicationSessionTagMatcher](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTagMatcher)that always returns true.                                                                                                                                                                                                                                                                                                               |

*** ** * ** ***

Defines how two[ApplicationSessionTag](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTag)should be matched. Used as a filter when searching for ongoing Sessions.

## Summary

|                                                                                                                                                                                      ### Public methods                                                                                                                                                                                      ||
|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract boolean` | [matchSessionTag](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTagMatcher#matchSessionTag(com.google.ambient.crossdevice.sessions.ApplicationSessionTag))`(`[ApplicationSessionTag](https://developer.android.com/reference/com/google/ambient/crossdevice/sessions/ApplicationSessionTag)` applicationSessionTag)` |

## Public methods

### matchSessionTag

```
abstract boolean matchSessionTag(ApplicationSessionTag applicationSessionTag)
```