AndroidHelper

open class AndroidHelper

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun centerToolbarTitle(@NonNull toolbar: Toolbar)
Link copied to clipboard
open fun checkConnectionAndNotify(context: Context, onActionCompleteCallback: OnActionCompleteCallback)
Link copied to clipboard
open fun dipToPixel(context: Context, dip: Int): Int
Link copied to clipboard
open fun disableKeepScreenOn(activity: Activity)
Link copied to clipboard
open fun enableKeepScreenOn(activity: Activity)
Link copied to clipboard
open fun getAdapterViewByPosition(pos: Int, view: AdapterView<out Any>): View
Link copied to clipboard
Link copied to clipboard
open fun getUriFromResource(@NonNull context: Context, @AnyRes resId: Int): Uri
get uri to any resource type
Link copied to clipboard
open fun hashAndEncode(input: String): String
Link copied to clipboard
open fun leaveAppDialog(activity: Activity)
Link copied to clipboard
open fun pixelToDip(context: Context, px: Int): Int
Link copied to clipboard
open fun radialButtonFindDistributedPoints(num_pts: Int, theta_max: Float, open_left: Boolean, x0: Int, y0: Int, min_item_height: Float, min_height_spacing: Float, min_radius: Float, max_radius: Float): List<Point>
This method will solve for a sequence of points to set the action buttons that will pop-out from a radial action button.
Link copied to clipboard
open fun startProgressAlertDialog(context: Context, msg: String, padding: Int, textSize: Float, cancelable: Boolean): AlertDialog
Creates a progress alert dialog with text
Link copied to clipboard
open fun tellAFriend(context: Context)
Link copied to clipboard
open fun vibrate(activity: Activity)