[android-components](../../index.md) / [mozilla.components.service.digitalassetlinks.local](../index.md) / [StatementRelationChecker](index.md) / [checkLink](./check-link.md)

# checkLink

`fun checkLink(statements: `[`Sequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/index.html)`<`[`Statement`](../../mozilla.components.service.digitalassetlinks/-statement/index.md)`>, relation: `[`Relation`](../../mozilla.components.service.digitalassetlinks/-relation/index.md)`, target: `[`AssetDescriptor`](../../mozilla.components.service.digitalassetlinks/-asset-descriptor/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/digitalassetlinks/src/main/java/mozilla/components/service/digitalassetlinks/local/StatementRelationChecker.kt#L30)

Check if any of the given [Statement](../../mozilla.components.service.digitalassetlinks/-statement/index.md)s are linked to the given [target](check-link.md#mozilla.components.service.digitalassetlinks.local.StatementRelationChecker.Companion$checkLink(kotlin.sequences.Sequence((mozilla.components.service.digitalassetlinks.Statement)), mozilla.components.service.digitalassetlinks.Relation, mozilla.components.service.digitalassetlinks.AssetDescriptor)/target).

