Unity Launcher 绑定,unitylauncher绑定,/** * Th
分享于 点击 45417 次 点评:109
Unity Launcher 绑定,unitylauncher绑定,/** * Th
/** * This interface provides access to some native Unity methods. * @author kdaniel * */ public interface UnityLauncherLibrary extends Library { UnityLauncherLibrary INSTANCE = (UnityLauncherLibrary) Native.loadLibrary("libunity", UnityLauncherLibrary.class); /** * Gets an "object" corresponding to particular *.desktop file. * @param id - the id of the launcher * @return a pointer to the object */ public abstract Pointer unity_launcher_entry_get_for_desktop_id (String id); /** * Makes a progress bar visible for particular launcher entry. * @param self - a launcher entry that should or should not display the progress bar * @param visible - true if the progress bar should be made visible. */ public abstract void unity_launcher_entry_set_progress_visible (Pointer self, boolean visible); /** * Actually updates the progress bar in Unity Launcher. * @param self - a launcher entry that should or should not display the progress bar * @param progress - a value from range 0.0 to 1.0. */ public abstract void unity_launcher_entry_set_progress (Pointer self, double progress); }
用户点评