Device.hasClasses

bool hasClasses(string classes)

Check if device matches all of the given classes

Parameters

classesa "/"-separated list of device classes to match, only match if all classes are matched

Returns

true if device matches.