isDexEnabled

open fun isDexEnabled(@NonNull context: @NonNull Context): Boolean

Checks whether Samsung DeX mode is enabled.

On One UI 8.0 and above, this checks whether desktop windowing is active on any connected display; on earlier versions, it queries the configuration's DeX mode directly.

Return

true if DeX mode is enabled, false otherwise

Parameters

context

the Context to check DeX status