Device.hasClasses

Check if @device matches all of the given classes

class Device
bool
hasClasses
(
string classes
)

Parameters

classes string

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

Return Value

Type: bool

%TRUE if @device matches.

Meta