/// <summary> /// Sets LCD state for the device display. /// </summary> /// <since_tizen> 4 </since_tizen> /// <param name="state">LCD state to be set.</param> /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation.</exception> public static void SetLcdState(LcdControlState state) { int ret = Interop.CallManager.SetLcdState(state); if (ret != (int)CmError.None) { Log.Error(CmUtility.LogTag, "Failed to set LCD state, Error: " + (CmError)ret); CmUtility.ThrowCmException(ret); } }
internal static extern int SetLcdState(LcdControlState state);