Skip to content

Documentation

kamyar haqqani edited this page Dec 2, 2019 · 10 revisions

This page documents and explains public properties of easiFileManager classes and Interfaces;

Classes:

  1. easyFileManager

Interfaces:

  1. File_action_event_listener
  2. File_item_evens_listener
  3. FileManager_states_listener
  4. Option_item_events_listener

easiFileManager

easiFileManager extends Fragment

Properties:

  • public String SDCARD_Path:

    The sdcard path of the OS; The default value is "/sdcard".

  • public static final int MODE_SINGLE_FILE_SELECTION=1001;

  • public static final int MODE_REGULAR_FILE_MANAGMENT =1002;

  • public static final String OPTION_DELETE_ID="DEL";

  • public static final String OPTION_COPY_ID="CPY";

  • public static final String OPTION_MOVE_ID="MV";

  • public static final String OPTION_SHARE_ID="SHARE";

  • public static final String OPTION_PASTE_ID="PASTE";

  • public static final String OPTION_NEW_FOLDER_ID="NEW_FOLDER";

  • public static final String OPTION_NEW_FILE_ID="NEW_FILE";

  • public static final int STATE_BROWSING_DIRS_TO_SELECT_COPY_OR_CUT_DESTINATION=1;

  • public static final int STATE_BROWSING_DIRS=0;

  • public int state=0;

  • public boolean FileManager_is_ready=false;

  • public List allowed_file_extentions_list=new ArrayList<>();

  • public List excluded_file_extentions_list=new ArrayList<>();

  • public List allowed_folder_extentions_list=new ArrayList<>();

  • public List excluded_folder_extentions_list=new ArrayList<>();

Methods:

  • public void add_on_FileItem_EventListener(File_item_evens_listener file_item_evens_listener)
  • public void add_Icon_for_file_type(Bitmap icon,String File_Extention)
  • public easyFileManager(Activity activity, String directory_to_browse, int mode, FileManager_states_listener fileManager_states_listener)throws Exception
  • public void add_common_options_and_operations()
  • public void unselect_all_file_items()throws Exception
  • public boolean is_file_extention_allowed(File file)
  • public void navigate_to_parent_directory()
  • public void navigate_to_directory(File f)throws IOException
  • public List get_list_of_option_IDs()
  • public void show_pic(final File image_File)
  • public void add_folder()throws Exception
  • public void add_Option_to_OptionsBar(Bitmap option_icon_bitmap, final Option_item_events_listener option_item_events_listener, String Option_ID, boolean is_available_only_when_files_are_selected)throws Exception
  • public void remove_Option_from_OptionsBar(String Option_ID)throws Exception
  • public String get_current_path()
  • public List get_selected_Files_list()
  • public void handle_Back_button_pressed_event()
  • public void show_OptionsBar(boolean b)
  • public static String getFileType(File file)
  • public static String get_FileName_Extention(String s)
  • public static File return_nonexisting_file(String dir, String name, String ext)
  • public static String add_num_to_name(String name, int i1)
  • public static void perform_action_on_file_or_folder(File Folder_or_File,File_action_event_listener action)

File_action_event_listener

Methods:

  • void on_File_about_to_be_processed(File f)
  • void on_Overall_progress_changed(int amount_of_progress_done, int amount_of_all_the_progress)

File_item_evens_listener

Methods:

  • void FileItem_onClickListener(File file);
  • void FileItem_onLongClickListener(File file);

FileManager_states_listener

Methods:

  • void onFile_Manager_Ready(easyFileManager fileManager);

Option_item_events_listener

Methods:

  • void Option_item_OnClickListener(List selected_Files_list);
  • void Option_item_OnlongClickListener(List selected_Files_list);

Clone this wiki locally