public class GfyCoreInitializationBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
GfyCoreInitializationBuilder.CacheFolderDoesNotExist
Used to indicate that provided path does not exist.
|
class |
GfyCoreInitializationBuilder.CacheFolderIsNotDirectory
Used to indicate that provided path is not directory.
|
Constructor and Description |
---|
GfyCoreInitializationBuilder(android.content.Context context,
GfycatApplicationInfo gfycatApplicationInfo) |
Modifier and Type | Method and Description |
---|---|
GfyCoreInitializationBuilder |
setCacheFolder(java.io.File cacheFolder)
Force gfycat to use cache folder provided by application.
|
GfyCoreInitializationBuilder |
setDropUserRelatedContentCallback(java.lang.Runnable dropUserRelatedContent)
Subscribe for user sign out if any extra actions needed for proper user data removal.
|
GfyCoreInitializationBuilder |
setMaxCacheSpace(long megabytes)
Set maximum storage space for Gfycat cache folder
|
GfyCoreInitializationBuilder |
setMinCacheSpace(long megabytes)
Set minimum storage space for Gfycat cache folder
|
public GfyCoreInitializationBuilder(android.content.Context context, GfycatApplicationInfo gfycatApplicationInfo)
context
- of application.gfycatApplicationInfo
- with correct CLIENT_ID and SECRET_ID.public GfyCoreInitializationBuilder setMinCacheSpace(long megabytes)
megabytes
- Amount of megabytes minimum.public GfyCoreInitializationBuilder setMaxCacheSpace(long megabytes)
megabytes
- Amount of megabytes maximum.public GfyCoreInitializationBuilder setCacheFolder(java.io.File cacheFolder) throws GfyCoreInitializationBuilder.CacheFolderDoesNotExist, GfyCoreInitializationBuilder.CacheFolderIsNotDirectory
cacheFolder
- application defined cache folder.GfyCoreInitializationBuilder.CacheFolderDoesNotExist
- if provided path does not exist.GfyCoreInitializationBuilder.CacheFolderIsNotDirectory
- if provided path is not directory.public GfyCoreInitializationBuilder setDropUserRelatedContentCallback(java.lang.Runnable dropUserRelatedContent)
dropUserRelatedContent
- callback called on user sign out.