AppContextUtils

Types

Link copied to clipboard
abstract class DiffAdapter<T>(val items: MutableList<T>, val comparison: (first: T, second: T) -> Boolean = { first, second -> first.hashCode() == second.hashCode() })

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun Activity.addRepositoryDialog(repositoryName: String, repositoryURL: String)
Link copied to clipboard
fun <Error class: unknown class>?.animateProgressTo(to: Int)
Link copied to clipboard
fun Context.createNotificationChannel(channelId: String, channelName: String, description: String)
Link copied to clipboard
fun Context.filterProviderByPreferredMedia(hasHomePageIsRequired: Boolean = true): List<MainAPI>
Link copied to clipboard
fun findFirstWatchNextProgram(context: Context, predicate: (Cursor) -> Boolean): Pair<<Error class: unknown class>?, Long?>

Find the Watch Next program for given id. Returns the first instance available.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Context.getNameFull(name: String?, episode: Int?, season: Int?): String

| S1:E2 Hello World | Episode 2. Hello world | Hello World | Season 1 - Episode 2 | Episode 2

Link copied to clipboard
fun Context.getUri(data: Uri?): Uri?
Link copied to clipboard
fun getVideoContentUri(context: Context, videoFilePath: String): Uri?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <Error class: unknown class>.isRecyclerScrollable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun loadResult(url: String, apiName: String, startAction: Int = 0, startValue: Int = 0)
Link copied to clipboard
fun <Error class: unknown class>.loadResult(url: String, apiName: String, startAction: Int = 0, startValue: Int = 0)
Link copied to clipboard
fun loadSearchResult(card: SearchResponse, startAction: Int = 0, startValue: Int? = null)
Link copied to clipboard
fun Activity?.loadSearchResult(card: SearchResponse, startAction: Int = 0, startValue: Int? = null)
Link copied to clipboard
fun Context.openBrowser(url: String, fallbackWebview: Boolean = false, fragment: <Error class: unknown class>? = null): Unit?

If fallbackWebview is true and a fragment is supplied then it will open a webview with the url if the browser fails.

Link copied to clipboard
fun openWebView(fragment: <Error class: unknown class>?, url: String)
Link copied to clipboard
fun <Error class: unknown class>?.ownHide()
Link copied to clipboard
fun <Error class: unknown class>?.ownShow()
Link copied to clipboard
fun <Error class: unknown class>.reduceDragSensitivity(f: Int = 4)
Link copied to clipboard
Link copied to clipboard
fun <Error class: unknown class>.setDefaultFocus(buttonFocus: Int = DialogInterface.BUTTON_NEGATIVE)

Sets the focus to the negative button when in TV and Emulator layout.

Link copied to clipboard
fun <Error class: unknown class>.setMaxViewPoolSize(maxViewTypeId: Int, maxPoolSize: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard