ImageLoader

abstract class ImageLoader : Actor

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
constructor()
create

Types

Link copied to clipboard
open class LoadImage : Job
closure to load and display the image.

Properties

Link copied to clipboard
protected open var Activity: Activity
currently displayed activity.
Link copied to clipboard
private open var Binding: IBinder
used to bind the service to it's activity
Link copied to clipboard
private open var channelName: CharSequence

unique id for the foreground notification Channel.

Link copied to clipboard
val Companion: ForegroundService.Companion
Link copied to clipboard
private open var enabled: Boolean

Service currently running in foreground

Link copied to clipboard
private val Foreground_Channel_ID: String = "Foreground"

unique id for the foreground notification Channel.

Link copied to clipboard

tile for to display on the notification. Note: No notification is shown when set to null.

Link copied to clipboard
private val Interval: Int = 500000000

Foreground notification interval

Link copied to clipboard
private open var Job_Running: Boolean
a jub is running
Link copied to clipboard
private val jobs: PriorityQueue<Job>
Queue of jobs to do
Link copied to clipboard
private open var lastNotification: Long

Timestamp of last foreground notification

Link copied to clipboard
private val Minutes_5: Int = 300000
default timeout of 5 minutes
Link copied to clipboard
private val Notification_ID: Int = 32873234

unique id for the foreground notification — just a random int. (0x1f59b12)

Link copied to clipboard
private open var notificationIconId: Int

icon id to display on the notification. Note: No notification is shown when set to 0.

Link copied to clipboard
private open var start: CountDownLatch
a Latch to ensure the thread is up an running after onStart
Link copied to clipboard
private val stop: AtomicBoolean
Actor should stop
Link copied to clipboard
private val TAG: String
private val TAG: String
logging tag
private val TAG: NonExistentClass

logging tag

Link copied to clipboard
private open var Worker_Thread: Thread
Thread in which the calculator runs.

Functions

Link copied to clipboard
open fun add(job: Job)
abstract fun add(job: Job)
add a new job to work queue
open fun add(receiver: Activity, view: ImageView, uri: URI, options: Options)
add a new job to load a image.
Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun createNotification(actionClass: Class<out NonExistentClass>, text: Array<CharSequence>): NonExistentClass

create a notification builder to display the give two line of Text.

Link copied to clipboard

create a channel to use for foreground notifications

Link copied to clipboard
protected open fun displayNotifications(): Boolean

check if foreground notification should be displayed.

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
open fun foreground(enable: Boolean, actionClass: Class<out NonExistentClass>, text: Array<CharSequence>)

Switch service to foreground and show a notification (which you have to sind API 5)

Link copied to clipboard
open fun getActivity(): Activity
Set Canvas to display result read keyboard
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun jobsFinished(): Boolean
check if all jobs are fineished
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun onBind(intent: Intent): IBinder
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
open fun onLowMemory()
memory is low.
Link copied to clipboard
protected open fun onPause()
The background thread has is paused (which happens after 5 minutes of disuse).
Link copied to clipboard
protected open fun onResume()
The background thread has been started or was resumes.
Link copied to clipboard
open fun onStart(intent: Intent, startId: Int)
This is the old onStart method that will be called on the pre-2.0 platform.
Link copied to clipboard
open fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int
The new 2.0 startup code.
Link copied to clipboard
open fun onUnbind(intent: Intent): Boolean
unbind the Service.
Link copied to clipboard
abstract fun run()

open fun run()
Initialize system and run virtual calculator CPU
Link copied to clipboard
open fun setActivity(activity: Activity)
Set Canvas to display result read keyboard
Link copied to clipboard
open fun setForegroundNotificationData(channelName: CharSequence, title: CharSequence, iconId: Int)

set the parameter needed to display a foreground notification. Without the service will always run in background.

Link copied to clipboard
open fun toString(): String
open fun toString(): String
Link copied to clipboard
private open fun uriToFile(uri: URI): File
get the cache file for a give uri
Link copied to clipboard
fun wait()