diff options
Diffstat (limited to 'RemoteFolder/src')
-rw-r--r-- | RemoteFolder/src/com/android/launcher3/RemoteFolderManager.java | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/RemoteFolder/src/com/android/launcher3/RemoteFolderManager.java b/RemoteFolder/src/com/android/launcher3/RemoteFolderManager.java new file mode 100644 index 000000000..b3a147c19 --- /dev/null +++ b/RemoteFolder/src/com/android/launcher3/RemoteFolderManager.java @@ -0,0 +1,97 @@ +package com.android.launcher3; + +import android.content.res.Resources; +import android.graphics.drawable.Drawable; +import android.view.View; +import android.view.ViewGroup; + +import java.util.ArrayList; + +/** + * Manages adding and removing the remote folder from the workspace. + */ +public class RemoteFolderManager { + + public RemoteFolderManager(final Launcher launcher) { } + + /** + * Create a remote folder view. + * @param icon folder icon view on the workspace. + * @return a view for the remote folder. + */ + public Folder createRemoteFolder(final FolderIcon icon, ViewGroup root) { return null; } + + /** + * Get a drawable for the supplied item in the folder icon preview. + * @param items list of views in the folder. + * @param position index of icon to retreive. + * @return an icon to draw in the folder preview. + */ + public Drawable getFolderIconDrawable(final ArrayList<View> items, + final int position) { return null; } + + /** + * Called when Launcher finishes binding items from the model. + */ + public void bindFinished() { } + + /** + * Called when the setting for remote folder is updated. + * @param newValue the new setting for remote folder + */ + public void onSettingChanged(final boolean newValue) { } + + /** + * Called when the remote folder is dropped into the delete area on the workspace. + */ + public void onFolderDeleted() { } + + /** + * Called when the app drawer is opened. + */ + public void onAppDrawerOpened() { } + + /** + * Called when new apps are added to launcher. + * @param apps list of added apps. + */ + public void onBindAddApps(ArrayList<AppInfo> apps) { } + + /** + * Called when launcher loads apps and applies them to the drawer. + */ + public void onSetApps() { } + + /** + * Called when the info icon is clicked + */ + public void onInfoIconClicked() { } + + /** + * Change the appearance of FolderIcon for our RemoteFolder by adding a badge + * @param icon the FolderIcon to update + * @return a FolderIcon with an added ImageView + */ + public static FolderIcon addBadgeToFolderIcon(FolderIcon icon) { + return icon; + } + + /** + * Called when the view holder is created for the remote header. + * @param holder remote view holder. + */ + public void onCreateViewHolder(final AppDrawerListAdapter.ViewHolder holder) { } + /** + * Called when the view holder is bound for the remote header. + * @param holder remote view holder. + * @param indexedInfo header info. + */ + public void onBindViewHolder(final AppDrawerListAdapter.ViewHolder holder, + final AppDrawerListAdapter.AppItemIndexedInfo indexedInfo) { } + + /** + * Get the String to be used for the RemoteFolder name and its corresponding Settings option + * @return the name RemoteFolder and its Setting option should use + */ + public static String getFeatureTitle(Resources res) { return null; } +} |