# ApplicationSessionTagMatcher

# ApplicationSessionTagMatcher

*** ** * ** ***

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

<br />

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

<br />

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

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

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                        ### Public functions                                                                                                                                                                                                                        ||
|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://developer.android.com/reference/kotlin/kotlin/Boolean) | [matchSessionTag](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/ApplicationSessionTagMatcher#matchSessionTag(com.google.ambient.crossdevice.sessions.ApplicationSessionTag))`(applicationSessionTag: `[ApplicationSessionTag](https://developer.android.com/reference/kotlin/com/google/ambient/crossdevice/sessions/ApplicationSessionTag)`?)` |

## Public functions

### matchSessionTag

```
fun matchSessionTag(applicationSessionTag: ApplicationSessionTag?): Boolean
```