App Utils
object AppUtils
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()
}) : RecyclerView.Adapter<RecyclerView.ViewHolder>
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun findFirstWatchNextProgram(context: Context, predicate: (Cursor) -> Boolean): Pair<WatchNextProgram?, 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
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 FragmentActivity.loadResult(url: String, apiName: String, startAction: Int = 0, startValue: Int = 0)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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