package com.remax.visualnovel.widget.imagepicker.views;

import android.content.Context;

import com.remax.visualnovel.widget.imagepicker.views.base.PickerControllerView;
import com.remax.visualnovel.widget.imagepicker.views.base.PickerFolderItemView;
import com.remax.visualnovel.widget.imagepicker.views.base.PickerItemView;
import com.remax.visualnovel.widget.imagepicker.views.base.SingleCropControllerView;
import com.remax.visualnovel.widget.imagepicker.views.wrapper.BottomBar;
import com.remax.visualnovel.widget.imagepicker.views.wrapper.FolderItemView;
import com.remax.visualnovel.widget.imagepicker.views.wrapper.ItemView;
import com.remax.visualnovel.widget.imagepicker.views.wrapper.PreviewControllerView;
import com.remax.visualnovel.widget.imagepicker.views.wrapper.TitleBar;


/**
 * Time: 2019/10/27 22:22
 * Author:ypx
 * Description: 选择器UI提供类,默认为微信样式
 */
public class PickerUiProvider {

    /**
     * 获取标题栏
     *
     * @param context 调用此view的activity
     */
    public PickerControllerView getTitleBar(Context context) {
        return new TitleBar(context);
    }

    /**
     * 获取底部栏
     *
     * @param context 调用此view的activity
     * @return {@link PickerControllerView}对象，参考{ WXBottomBar}
     */
    public PickerControllerView getBottomBar(Context context) {
        return new BottomBar(context, false);
    }

    /**
     * 获取自定义item
     *
     * @param context 调用此view的activity
     */
    public PickerItemView getItemView(Context context) {
        return new ItemView(context);
    }

    /**
     * 获取自定义文件夹item
     *
     * @param context 调用此view的activity
     */
    public PickerFolderItemView getFolderItemView(Context context) {
        return new FolderItemView(context);
    }

    /**
     * 获取自定义预览界面
     *
     * @param context 调用此view的activity
     */
    public PreviewControllerView getPreviewControllerView(Context context) {
        return new PreviewControllerView(context);
    }

    /**
     * 获取自定义单图剪裁界面
     *
     * @param context 调用此view的activity
     */
    public SingleCropControllerView getSingleCropControllerView(Context context) {
        return new com.remax.visualnovel.widget.imagepicker.views.wrapper.SingleCropControllerView(context);
    }
}
