AppContextUtils

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun Activity.addRepositoryDialog(repositoryName: String, repositoryURL: String)
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

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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 loadResult(url: String, apiName: String, name: String, startAction: Int = 0, startValue: Int = 0)
fun FragmentActivity.loadResult(url: String, apiName: String, name: String, startAction: Int = 0, startValue: Int = 0)
Link copied to clipboard
fun loadSearchResult(card: SearchResponse, startAction: Int = 0, startValue: Int? = null)
fun Activity?.loadSearchResult(card: SearchResponse, startAction: Int = 0, startValue: Int? = null)
Link copied to clipboard
fun Context.openBrowser(url: String, fallbackWebview: Boolean = false, fragment: Fragment? = 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: Fragment?, url: String)
Link copied to clipboard
fun BottomSheetDialog?.ownHide()
Link copied to clipboard
fun BottomSheetDialog?.ownShow()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun AlertDialog.setDefaultFocus(buttonFocus: Int = DialogInterface.BUTTON_NEGATIVE)

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard