Skip to main content
API Reference com.nianticspatial.nsdk.awareness.semantics SemanticsSession

unpackChannelsFromBitmask

Unpacks semantic channels from a packed channel bitmask. This converts a bitmask value (where each bit represents a semantic channel) into an EnumSet of SemanticsChannel enum values representing the channels present in the bitmask.

Declaration

fun unpackChannelsFromBitmask(bitmask: Int): EnumSet<SemanticsChannel>

Summary

Unpacks semantic channels from a packed channel bitmask. This converts a bitmask value (where each bit represents a semantic channel) into an EnumSet of SemanticsChannel enum values representing the channels present in the bitmask.

Returns

EnumSet of SemanticsChannel values present in the bitmask


ON THIS PAGE