@class
interface UIAbility {
    onForeground(): void;
    onBackground(): void;
}

@ctor("UIAbility")
function getUIAbility(): UIAbility;

function useUIAbility(a: UIAbility): void;

@static("UIAbility")
function logLifecycle(str: String): void;
