RelationSet.containsTarget

bool containsTarget(atk.types.RelationType relationship, atk.object.ObjectWrap target)

Determines whether the relation set contains a relation that matches the specified pair formed by type relationship and object target.

Parameters

relationshipan #AtkRelationType
targetan #AtkObject

Returns

true if set contains a relation with the relationship

type relationship with an object target, false otherwise