whodis-react
Version:
React hooks and components for secure, best practices authentication in seconds
15 lines (14 loc) • 413 B
TypeScript
/**
* .what = a universal utility for subscribing to screen focus events
* .why =
* - uses Window api in runtime=browser
* - uses AppState api in runtime=native
*/
export declare const getUniOnScreenFocusEventStream: () => {
subscribe: (input: {
consumer: () => void | Promise<void>;
}) => void;
unsubscribe: (input: {
consumer: () => void | Promise<void>;
}) => void;
};