LIBKYPOWERMANAGEMENT(3) Library Functions Manual LIBKYPOWERMANAGEMENT(3)

kdk_set_inhibit_lockscreen, kdk_un_inhibit_lockscreen - 提供锁屏设置能力

#include <libkylockscreen.h>

extern uint32_t kdk_set_inhibit_lockscreen(const char *appName, const char *reason);

extern int kdk_un_inhibit_lockscreen(uint32_t flag);

Link with -lkypowermanagement.

This library provides lock screen setting capabilities.

The return value is generally specific to the individual function called.

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_set_inhibit_lockscreen() and kdk_un_inhibit_lockscreen().

kdk_set_inhibit_lockscreen(3) and kdk_un_inhibit_lockscreen(3).

Mon Sep 18 2023 Linux Programmer's Manual