use of com.getchute.android.photopickerplus.config.PhotoPickerConfiguration in project photo-picker-plus-android by chute.
the class PhotoPickerPlusTutorialApp method onCreate.
@Override
public void onCreate() {
super.onCreate();
/**
* Fill in using "app_id" and "app_secret" values from your Chute
* application.
*
* See <a href="https://apps.getchute.com">https://apps.getchute.com</a>
*/
Chute.init(this, new AuthConstants(APP_ID, APP_SECRET));
Map<AccountType, DisplayType> map = new HashMap<AccountType, DisplayType>();
map.put(AccountType.INSTAGRAM, DisplayType.LIST);
PhotoPickerConfiguration config = new PhotoPickerConfiguration.Builder(getApplicationContext()).isMultiPicker(false).defaultAccountDisplayType(DisplayType.LIST).enableLogout(true).accountList(AccountType.FLICKR, AccountType.DROPBOX, AccountType.INSTAGRAM, AccountType.GOOGLE, AccountType.YOUTUBE, AccountType.FACEBOOK, AccountType.CHUTE, AccountType.FOURSQUARE, AccountType.GOOGLEDRIVE, AccountType.PICASA, AccountType.SKYDRIVE, AccountType.TWITTER).localMediaList(LocalServiceType.ALL_MEDIA, LocalServiceType.CAMERA_MEDIA, LocalServiceType.RECORD_VIDEO, LocalServiceType.LAST_VIDEO_CAPTURED, LocalServiceType.TAKE_PHOTO, LocalServiceType.LAST_PHOTO_TAKEN).configUrl(ConfigEndpointURLs.SERVICES_CONFIG_URL).supportImages(true).supportVideos(true).build();
PhotoPicker.getInstance().init(config);
}
Aggregations