Skip to content

Instantly share code, notes, and snippets.

@pfn
Last active Aug 29, 2015
Embed
What would you like to do?
android function generators
package com.hanhuy.android
import language.implicitConversions
package object conversions {
implicit def `fn1 to android.nfc.NfcAdapter$CreateNdefMessageCallback`(fn: (android.nfc.NfcEvent) => android.nfc.NdefMessage): android.nfc.NfcAdapter.CreateNdefMessageCallback = new android.nfc.NfcAdapter.CreateNdefMessageCallback {
override def createNdefMessage(a: android.nfc.NfcEvent) = fn(a)
}
implicit def `fn0 to android.nfc.NfcAdapter$CreateNdefMessageCallback`(fn: () => android.nfc.NdefMessage): android.nfc.NfcAdapter.CreateNdefMessageCallback = new android.nfc.NfcAdapter.CreateNdefMessageCallback {
override def createNdefMessage(a: android.nfc.NfcEvent) = fn()
}
implicit def `fn1 to android.nfc.NfcAdapter$OnNdefPushCompleteCallback`[A](fn: (android.nfc.NfcEvent) => A): android.nfc.NfcAdapter.OnNdefPushCompleteCallback = new android.nfc.NfcAdapter.OnNdefPushCompleteCallback {
override def onNdefPushComplete(a: android.nfc.NfcEvent) = fn(a)
}
implicit def `fn0 to android.nfc.NfcAdapter$OnNdefPushCompleteCallback`[A](fn: () => A): android.nfc.NfcAdapter.OnNdefPushCompleteCallback = new android.nfc.NfcAdapter.OnNdefPushCompleteCallback {
override def onNdefPushComplete(a: android.nfc.NfcEvent) = fn()
}
implicit def `fn1 to android.nfc.NfcAdapter$CreateBeamUrisCallback`(fn: (android.nfc.NfcEvent) => Array[android.net.Uri]): android.nfc.NfcAdapter.CreateBeamUrisCallback = new android.nfc.NfcAdapter.CreateBeamUrisCallback {
override def createBeamUris(a: android.nfc.NfcEvent) = fn(a)
}
implicit def `fn0 to android.nfc.NfcAdapter$CreateBeamUrisCallback`(fn: () => Array[android.net.Uri]): android.nfc.NfcAdapter.CreateBeamUrisCallback = new android.nfc.NfcAdapter.CreateBeamUrisCallback {
override def createBeamUris(a: android.nfc.NfcEvent) = fn()
}
implicit def `fn1 to android.nfc.NfcAdapter$ReaderCallback`[A](fn: (android.nfc.Tag) => A): android.nfc.NfcAdapter.ReaderCallback = new android.nfc.NfcAdapter.ReaderCallback {
override def onTagDiscovered(a: android.nfc.Tag) = fn(a)
}
implicit def `fn0 to android.nfc.NfcAdapter$ReaderCallback`[A](fn: () => A): android.nfc.NfcAdapter.ReaderCallback = new android.nfc.NfcAdapter.ReaderCallback {
override def onTagDiscovered(a: android.nfc.Tag) = fn()
}
implicit def `fn3 to android.animation.TimeAnimator$TimeListener`[A](fn: (android.animation.TimeAnimator, Long, Long) => A): android.animation.TimeAnimator.TimeListener = new android.animation.TimeAnimator.TimeListener {
override def onTimeUpdate(a: android.animation.TimeAnimator, b: Long, c: Long) = fn(a, b, c)
}
implicit def `fn0 to android.animation.TimeAnimator$TimeListener`[A](fn: () => A): android.animation.TimeAnimator.TimeListener = new android.animation.TimeAnimator.TimeListener {
override def onTimeUpdate(a: android.animation.TimeAnimator, b: Long, c: Long) = fn()
}
implicit def `fn1 to android.animation.ValueAnimator$AnimatorUpdateListener`[A](fn: (android.animation.ValueAnimator) => A): android.animation.ValueAnimator.AnimatorUpdateListener = new android.animation.ValueAnimator.AnimatorUpdateListener {
override def onAnimationUpdate(a: android.animation.ValueAnimator) = fn(a)
}
implicit def `fn0 to android.animation.ValueAnimator$AnimatorUpdateListener`[A](fn: () => A): android.animation.ValueAnimator.AnimatorUpdateListener = new android.animation.ValueAnimator.AnimatorUpdateListener {
override def onAnimationUpdate(a: android.animation.ValueAnimator) = fn()
}
implicit def `fn3 to android.animation.TypeEvaluator`[T](fn: (Float, T, T) => T): android.animation.TypeEvaluator[T] = new android.animation.TypeEvaluator[T] {
override def evaluate(a: Float, b: T, c: T) = fn(a, b, c)
}
implicit def `fn0 to android.animation.TypeEvaluator`[T](fn: () => T): android.animation.TypeEvaluator[T] = new android.animation.TypeEvaluator[T] {
override def evaluate(a: Float, b: T, c: T) = fn()
}
implicit def `fn1 to android.animation.TimeInterpolator`(fn: (Float) => Float): android.animation.TimeInterpolator = new android.animation.TimeInterpolator {
override def getInterpolation(a: Float) = fn(a)
}
implicit def `fn0 to android.animation.TimeInterpolator`(fn: () => Float): android.animation.TimeInterpolator = new android.animation.TimeInterpolator {
override def getInterpolation(a: Float) = fn()
}
implicit def `fn2 to android.drm.DrmManagerClient$OnInfoListener`[A](fn: (android.drm.DrmManagerClient, android.drm.DrmInfoEvent) => A): android.drm.DrmManagerClient.OnInfoListener = new android.drm.DrmManagerClient.OnInfoListener {
override def onInfo(a: android.drm.DrmManagerClient, b: android.drm.DrmInfoEvent) = fn(a, b)
}
implicit def `fn0 to android.drm.DrmManagerClient$OnInfoListener`[A](fn: () => A): android.drm.DrmManagerClient.OnInfoListener = new android.drm.DrmManagerClient.OnInfoListener {
override def onInfo(a: android.drm.DrmManagerClient, b: android.drm.DrmInfoEvent) = fn()
}
implicit def `fn2 to android.drm.DrmManagerClient$OnErrorListener`[A](fn: (android.drm.DrmManagerClient, android.drm.DrmErrorEvent) => A): android.drm.DrmManagerClient.OnErrorListener = new android.drm.DrmManagerClient.OnErrorListener {
override def onError(a: android.drm.DrmManagerClient, b: android.drm.DrmErrorEvent) = fn(a, b)
}
implicit def `fn0 to android.drm.DrmManagerClient$OnErrorListener`[A](fn: () => A): android.drm.DrmManagerClient.OnErrorListener = new android.drm.DrmManagerClient.OnErrorListener {
override def onError(a: android.drm.DrmManagerClient, b: android.drm.DrmErrorEvent) = fn()
}
implicit def `fn2 to android.drm.DrmManagerClient$OnEventListener`[A](fn: (android.drm.DrmManagerClient, android.drm.DrmEvent) => A): android.drm.DrmManagerClient.OnEventListener = new android.drm.DrmManagerClient.OnEventListener {
override def onEvent(a: android.drm.DrmManagerClient, b: android.drm.DrmEvent) = fn(a, b)
}
implicit def `fn0 to android.drm.DrmManagerClient$OnEventListener`[A](fn: () => A): android.drm.DrmManagerClient.OnEventListener = new android.drm.DrmManagerClient.OnEventListener {
override def onEvent(a: android.drm.DrmManagerClient, b: android.drm.DrmEvent) = fn()
}
implicit def `fn1 to android.accounts.AccountManagerCallback`[A,V](fn: (android.accounts.AccountManagerFuture[V]) => A): android.accounts.AccountManagerCallback[V] = new android.accounts.AccountManagerCallback[V] {
override def run(a: android.accounts.AccountManagerFuture[V]) = fn(a)
}
implicit def `fn0 to android.accounts.AccountManagerCallback`[A,V](fn: () => A): android.accounts.AccountManagerCallback[V] = new android.accounts.AccountManagerCallback[V] {
override def run(a: android.accounts.AccountManagerFuture[V]) = fn()
}
implicit def `fn1 to android.accounts.OnAccountsUpdateListener`[A](fn: (Array[android.accounts.Account]) => A): android.accounts.OnAccountsUpdateListener = new android.accounts.OnAccountsUpdateListener {
override def onAccountsUpdated(a: Array[android.accounts.Account]) = fn(a)
}
implicit def `fn0 to android.accounts.OnAccountsUpdateListener`[A](fn: () => A): android.accounts.OnAccountsUpdateListener = new android.accounts.OnAccountsUpdateListener {
override def onAccountsUpdated(a: Array[android.accounts.Account]) = fn()
}
implicit def `fn4 to android.transition.PathMotion`(fn: (Float, Float, Float, Float) => android.graphics.Path): android.transition.PathMotion = new android.transition.PathMotion {
override def getPath(a: Float, b: Float, c: Float, d: Float) = fn(a, b, c, d)
}
implicit def `fn0 to android.transition.PathMotion`(fn: () => android.graphics.Path): android.transition.PathMotion = new android.transition.PathMotion {
override def getPath(a: Float, b: Float, c: Float, d: Float) = fn()
}
implicit def `fn1 to android.transition.Transition$EpicenterCallback`(fn: (android.transition.Transition) => android.graphics.Rect): android.transition.Transition.EpicenterCallback = new android.transition.Transition.EpicenterCallback {
override def onGetEpicenter(a: android.transition.Transition) = fn(a)
}
implicit def `fn0 to android.transition.Transition$EpicenterCallback`(fn: () => android.graphics.Rect): android.transition.Transition.EpicenterCallback = new android.transition.Transition.EpicenterCallback {
override def onGetEpicenter(a: android.transition.Transition) = fn()
}
implicit def `fn1 to android.widget.ExpandableListView$OnGroupExpandListener`[A](fn: (Int) => A): android.widget.ExpandableListView.OnGroupExpandListener = new android.widget.ExpandableListView.OnGroupExpandListener {
override def onGroupExpand(a: Int) = fn(a)
}
implicit def `fn0 to android.widget.ExpandableListView$OnGroupExpandListener`[A](fn: () => A): android.widget.ExpandableListView.OnGroupExpandListener = new android.widget.ExpandableListView.OnGroupExpandListener {
override def onGroupExpand(a: Int) = fn()
}
implicit def `fn1 to android.widget.AbsListView$RecyclerListener`[A](fn: (android.view.View) => A): android.widget.AbsListView.RecyclerListener = new android.widget.AbsListView.RecyclerListener {
override def onMovedToScrapHeap(a: android.view.View) = fn(a)
}
implicit def `fn0 to android.widget.AbsListView$RecyclerListener`[A](fn: () => A): android.widget.AbsListView.RecyclerListener = new android.widget.AbsListView.RecyclerListener {
override def onMovedToScrapHeap(a: android.view.View) = fn()
}
implicit def `fn4 to android.widget.DatePicker$OnDateChangedListener`[A](fn: (android.widget.DatePicker, Int, Int, Int) => A): android.widget.DatePicker.OnDateChangedListener = new android.widget.DatePicker.OnDateChangedListener {
override def onDateChanged(a: android.widget.DatePicker, b: Int, c: Int, d: Int) = fn(a, b, c, d)
}
implicit def `fn0 to android.widget.DatePicker$OnDateChangedListener`[A](fn: () => A): android.widget.DatePicker.OnDateChangedListener = new android.widget.DatePicker.OnDateChangedListener {
override def onDateChanged(a: android.widget.DatePicker, b: Int, c: Int, d: Int) = fn()
}
implicit def `fn3 to android.widget.SimpleCursorTreeAdapter$ViewBinder`(fn: (android.view.View, android.database.Cursor, Int) => Boolean): android.widget.SimpleCursorTreeAdapter.ViewBinder = new android.widget.SimpleCursorTreeAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: android.database.Cursor, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.widget.SimpleCursorTreeAdapter$ViewBinder`(fn: () => Boolean): android.widget.SimpleCursorTreeAdapter.ViewBinder = new android.widget.SimpleCursorTreeAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: android.database.Cursor, c: Int) = fn()
}
implicit def `fn1 to android.widget.SimpleCursorAdapter$CursorToStringConverter`(fn: (android.database.Cursor) => java.lang.CharSequence): android.widget.SimpleCursorAdapter.CursorToStringConverter = new android.widget.SimpleCursorAdapter.CursorToStringConverter {
override def convertToString(a: android.database.Cursor) = fn(a)
}
implicit def `fn0 to android.widget.SimpleCursorAdapter$CursorToStringConverter`(fn: () => java.lang.CharSequence): android.widget.SimpleCursorAdapter.CursorToStringConverter = new android.widget.SimpleCursorAdapter.CursorToStringConverter {
override def convertToString(a: android.database.Cursor) = fn()
}
implicit def `fn5 to android.widget.ExpandableListView$OnChildClickListener`(fn: (android.widget.ExpandableListView, android.view.View, Int, Int, Long) => Boolean): android.widget.ExpandableListView.OnChildClickListener = new android.widget.ExpandableListView.OnChildClickListener {
override def onChildClick(a: android.widget.ExpandableListView, b: android.view.View, c: Int, d: Int, e: Long) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.widget.ExpandableListView$OnChildClickListener`(fn: () => Boolean): android.widget.ExpandableListView.OnChildClickListener = new android.widget.ExpandableListView.OnChildClickListener {
override def onChildClick(a: android.widget.ExpandableListView, b: android.view.View, c: Int, d: Int, e: Long) = fn()
}
implicit def `fn0 to android.widget.PopupWindow$OnDismissListener`[A](fn: () => A): android.widget.PopupWindow.OnDismissListener = new android.widget.PopupWindow.OnDismissListener {
override def onDismiss() = fn()
}
implicit def `fn2 to android.widget.RadioGroup$OnCheckedChangeListener`[A](fn: (android.widget.RadioGroup, Int) => A): android.widget.RadioGroup.OnCheckedChangeListener = new android.widget.RadioGroup.OnCheckedChangeListener {
override def onCheckedChanged(a: android.widget.RadioGroup, b: Int) = fn(a, b)
}
implicit def `fn0 to android.widget.RadioGroup$OnCheckedChangeListener`[A](fn: () => A): android.widget.RadioGroup.OnCheckedChangeListener = new android.widget.RadioGroup.OnCheckedChangeListener {
override def onCheckedChanged(a: android.widget.RadioGroup, b: Int) = fn()
}
implicit def `fn2 to android.widget.CompoundButton$OnCheckedChangeListener`[A](fn: (android.widget.CompoundButton, Boolean) => A): android.widget.CompoundButton.OnCheckedChangeListener = new android.widget.CompoundButton.OnCheckedChangeListener {
override def onCheckedChanged(a: android.widget.CompoundButton, b: Boolean) = fn(a, b)
}
implicit def `fn0 to android.widget.CompoundButton$OnCheckedChangeListener`[A](fn: () => A): android.widget.CompoundButton.OnCheckedChangeListener = new android.widget.CompoundButton.OnCheckedChangeListener {
override def onCheckedChanged(a: android.widget.CompoundButton, b: Boolean) = fn()
}
implicit def `fn3 to android.widget.SimpleCursorAdapter$ViewBinder`(fn: (android.view.View, android.database.Cursor, Int) => Boolean): android.widget.SimpleCursorAdapter.ViewBinder = new android.widget.SimpleCursorAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: android.database.Cursor, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.widget.SimpleCursorAdapter$ViewBinder`(fn: () => Boolean): android.widget.SimpleCursorAdapter.ViewBinder = new android.widget.SimpleCursorAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: android.database.Cursor, c: Int) = fn()
}
implicit def `fn1 to android.widget.Chronometer$OnChronometerTickListener`[A](fn: (android.widget.Chronometer) => A): android.widget.Chronometer.OnChronometerTickListener = new android.widget.Chronometer.OnChronometerTickListener {
override def onChronometerTick(a: android.widget.Chronometer) = fn(a)
}
implicit def `fn0 to android.widget.Chronometer$OnChronometerTickListener`[A](fn: () => A): android.widget.Chronometer.OnChronometerTickListener = new android.widget.Chronometer.OnChronometerTickListener {
override def onChronometerTick(a: android.widget.Chronometer) = fn()
}
implicit def `fn3 to android.widget.NumberPicker$OnValueChangeListener`[A](fn: (android.widget.NumberPicker, Int, Int) => A): android.widget.NumberPicker.OnValueChangeListener = new android.widget.NumberPicker.OnValueChangeListener {
override def onValueChange(a: android.widget.NumberPicker, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.widget.NumberPicker$OnValueChangeListener`[A](fn: () => A): android.widget.NumberPicker.OnValueChangeListener = new android.widget.NumberPicker.OnValueChangeListener {
override def onValueChange(a: android.widget.NumberPicker, b: Int, c: Int) = fn()
}
implicit def `fn4 to android.widget.AdapterView$OnItemClickListener`[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A): android.widget.AdapterView.OnItemClickListener = new android.widget.AdapterView.OnItemClickListener {
override def onItemClick(a: android.widget.AdapterView[_], b: android.view.View, c: Int, d: Long) = fn(a, b, c, d)
}
implicit def `fn0 to android.widget.AdapterView$OnItemClickListener`[A](fn: () => A): android.widget.AdapterView.OnItemClickListener = new android.widget.AdapterView.OnItemClickListener {
override def onItemClick(a: android.widget.AdapterView[_], b: android.view.View, c: Int, d: Long) = fn()
}
implicit def `fn3 to android.widget.SimpleAdapter$ViewBinder`(fn: (android.view.View, java.lang.Object, java.lang.String) => Boolean): android.widget.SimpleAdapter.ViewBinder = new android.widget.SimpleAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: java.lang.Object, c: java.lang.String) = fn(a, b, c)
}
implicit def `fn0 to android.widget.SimpleAdapter$ViewBinder`(fn: () => Boolean): android.widget.SimpleAdapter.ViewBinder = new android.widget.SimpleAdapter.ViewBinder {
override def setViewValue(a: android.view.View, b: java.lang.Object, c: java.lang.String) = fn()
}
implicit def `fn1 to android.widget.TabHost$TabContentFactory`(fn: (java.lang.String) => android.view.View): android.widget.TabHost.TabContentFactory = new android.widget.TabHost.TabContentFactory {
override def createTabContent(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.widget.TabHost$TabContentFactory`(fn: () => android.view.View): android.widget.TabHost.TabContentFactory = new android.widget.TabHost.TabContentFactory {
override def createTabContent(a: java.lang.String) = fn()
}
implicit def `fn0 to android.widget.SearchView$OnCloseListener`(fn: () => Boolean): android.widget.SearchView.OnCloseListener = new android.widget.SearchView.OnCloseListener {
override def onClose() = fn()
}
implicit def `fn3 to android.widget.RatingBar$OnRatingBarChangeListener`[A](fn: (android.widget.RatingBar, Float, Boolean) => A): android.widget.RatingBar.OnRatingBarChangeListener = new android.widget.RatingBar.OnRatingBarChangeListener {
override def onRatingChanged(a: android.widget.RatingBar, b: Float, c: Boolean) = fn(a, b, c)
}
implicit def `fn0 to android.widget.RatingBar$OnRatingBarChangeListener`[A](fn: () => A): android.widget.RatingBar.OnRatingBarChangeListener = new android.widget.RatingBar.OnRatingBarChangeListener {
override def onRatingChanged(a: android.widget.RatingBar, b: Float, c: Boolean) = fn()
}
implicit def `fn1 to android.widget.NumberPicker$Formatter`(fn: (Int) => java.lang.String): android.widget.NumberPicker.Formatter = new android.widget.NumberPicker.Formatter {
override def format(a: Int) = fn(a)
}
implicit def `fn0 to android.widget.NumberPicker$Formatter`(fn: () => java.lang.String): android.widget.NumberPicker.Formatter = new android.widget.NumberPicker.Formatter {
override def format(a: Int) = fn()
}
implicit def `fn0 to android.widget.ViewSwitcher$ViewFactory`(fn: () => android.view.View): android.widget.ViewSwitcher.ViewFactory = new android.widget.ViewSwitcher.ViewFactory {
override def makeView() = fn()
}
implicit def `fn1 to android.widget.PopupMenu$OnDismissListener`[A](fn: (android.widget.PopupMenu) => A): android.widget.PopupMenu.OnDismissListener = new android.widget.PopupMenu.OnDismissListener {
override def onDismiss(a: android.widget.PopupMenu) = fn(a)
}
implicit def `fn0 to android.widget.PopupMenu$OnDismissListener`[A](fn: () => A): android.widget.PopupMenu.OnDismissListener = new android.widget.PopupMenu.OnDismissListener {
override def onDismiss(a: android.widget.PopupMenu) = fn()
}
implicit def `fn3 to android.widget.TextView$OnEditorActionListener`(fn: (android.widget.TextView, Int, android.view.KeyEvent) => Boolean): android.widget.TextView.OnEditorActionListener = new android.widget.TextView.OnEditorActionListener {
override def onEditorAction(a: android.widget.TextView, b: Int, c: android.view.KeyEvent) = fn(a, b, c)
}
implicit def `fn0 to android.widget.TextView$OnEditorActionListener`(fn: () => Boolean): android.widget.TextView.OnEditorActionListener = new android.widget.TextView.OnEditorActionListener {
override def onEditorAction(a: android.widget.TextView, b: Int, c: android.view.KeyEvent) = fn()
}
implicit def `fn1 to android.widget.PopupMenu$OnMenuItemClickListener`(fn: (android.view.MenuItem) => Boolean): android.widget.PopupMenu.OnMenuItemClickListener = new android.widget.PopupMenu.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn(a)
}
implicit def `fn0 to android.widget.PopupMenu$OnMenuItemClickListener`(fn: () => Boolean): android.widget.PopupMenu.OnMenuItemClickListener = new android.widget.PopupMenu.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn()
}
implicit def `fn0 to android.widget.SlidingDrawer$OnDrawerCloseListener`[A](fn: () => A): android.widget.SlidingDrawer.OnDrawerCloseListener = new android.widget.SlidingDrawer.OnDrawerCloseListener {
override def onDrawerClosed() = fn()
}
implicit def `fn0 to android.widget.SlidingDrawer$OnDrawerOpenListener`[A](fn: () => A): android.widget.SlidingDrawer.OnDrawerOpenListener = new android.widget.SlidingDrawer.OnDrawerOpenListener {
override def onDrawerOpened() = fn()
}
implicit def `fn4 to android.widget.ExpandableListView$OnGroupClickListener`(fn: (android.widget.ExpandableListView, android.view.View, Int, Long) => Boolean): android.widget.ExpandableListView.OnGroupClickListener = new android.widget.ExpandableListView.OnGroupClickListener {
override def onGroupClick(a: android.widget.ExpandableListView, b: android.view.View, c: Int, d: Long) = fn(a, b, c, d)
}
implicit def `fn0 to android.widget.ExpandableListView$OnGroupClickListener`(fn: () => Boolean): android.widget.ExpandableListView.OnGroupClickListener = new android.widget.ExpandableListView.OnGroupClickListener {
override def onGroupClick(a: android.widget.ExpandableListView, b: android.view.View, c: Int, d: Long) = fn()
}
implicit def `fn1 to android.widget.Filter$FilterListener`[A](fn: (Int) => A): android.widget.Filter.FilterListener = new android.widget.Filter.FilterListener {
override def onFilterComplete(a: Int) = fn(a)
}
implicit def `fn0 to android.widget.Filter$FilterListener`[A](fn: () => A): android.widget.Filter.FilterListener = new android.widget.Filter.FilterListener {
override def onFilterComplete(a: Int) = fn()
}
implicit def `fn1 to android.widget.AbsListView$SelectionBoundsAdjuster`[A](fn: (android.graphics.Rect) => A): android.widget.AbsListView.SelectionBoundsAdjuster = new android.widget.AbsListView.SelectionBoundsAdjuster {
override def adjustListItemSelectionBounds(a: android.graphics.Rect) = fn(a)
}
implicit def `fn0 to android.widget.AbsListView$SelectionBoundsAdjuster`[A](fn: () => A): android.widget.AbsListView.SelectionBoundsAdjuster = new android.widget.AbsListView.SelectionBoundsAdjuster {
override def adjustListItemSelectionBounds(a: android.graphics.Rect) = fn()
}
implicit def `fn0 to android.widget.Filterable`(fn: () => android.widget.Filter): android.widget.Filterable = new android.widget.Filterable {
override def getFilter() = fn()
}
implicit def `fn4 to android.widget.CalendarView$OnDateChangeListener`[A](fn: (android.widget.CalendarView, Int, Int, Int) => A): android.widget.CalendarView.OnDateChangeListener = new android.widget.CalendarView.OnDateChangeListener {
override def onSelectedDayChange(a: android.widget.CalendarView, b: Int, c: Int, d: Int) = fn(a, b, c, d)
}
implicit def `fn0 to android.widget.CalendarView$OnDateChangeListener`[A](fn: () => A): android.widget.CalendarView.OnDateChangeListener = new android.widget.CalendarView.OnDateChangeListener {
override def onSelectedDayChange(a: android.widget.CalendarView, b: Int, c: Int, d: Int) = fn()
}
implicit def `fn1 to android.widget.ExpandableListView$OnGroupCollapseListener`[A](fn: (Int) => A): android.widget.ExpandableListView.OnGroupCollapseListener = new android.widget.ExpandableListView.OnGroupCollapseListener {
override def onGroupCollapse(a: Int) = fn(a)
}
implicit def `fn0 to android.widget.ExpandableListView$OnGroupCollapseListener`[A](fn: () => A): android.widget.ExpandableListView.OnGroupCollapseListener = new android.widget.ExpandableListView.OnGroupCollapseListener {
override def onGroupCollapse(a: Int) = fn()
}
implicit def `fn0 to android.widget.AutoCompleteTextView$OnDismissListener`[A](fn: () => A): android.widget.AutoCompleteTextView.OnDismissListener = new android.widget.AutoCompleteTextView.OnDismissListener {
override def onDismiss() = fn()
}
implicit def `fn1 to android.widget.FilterQueryProvider`(fn: (java.lang.CharSequence) => android.database.Cursor): android.widget.FilterQueryProvider = new android.widget.FilterQueryProvider {
override def runQuery(a: java.lang.CharSequence) = fn(a)
}
implicit def `fn0 to android.widget.FilterQueryProvider`(fn: () => android.database.Cursor): android.widget.FilterQueryProvider = new android.widget.FilterQueryProvider {
override def runQuery(a: java.lang.CharSequence) = fn()
}
implicit def `fn2 to android.widget.NumberPicker$OnScrollListener`[A](fn: (android.widget.NumberPicker, Int) => A): android.widget.NumberPicker.OnScrollListener = new android.widget.NumberPicker.OnScrollListener {
override def onScrollStateChange(a: android.widget.NumberPicker, b: Int) = fn(a, b)
}
implicit def `fn0 to android.widget.NumberPicker$OnScrollListener`[A](fn: () => A): android.widget.NumberPicker.OnScrollListener = new android.widget.NumberPicker.OnScrollListener {
override def onScrollStateChange(a: android.widget.NumberPicker, b: Int) = fn()
}
implicit def `fn1 to android.widget.Toolbar$OnMenuItemClickListener`(fn: (android.view.MenuItem) => Boolean): android.widget.Toolbar.OnMenuItemClickListener = new android.widget.Toolbar.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn(a)
}
implicit def `fn0 to android.widget.Toolbar$OnMenuItemClickListener`(fn: () => Boolean): android.widget.Toolbar.OnMenuItemClickListener = new android.widget.Toolbar.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn()
}
implicit def `fn4 to android.widget.AdapterView$OnItemLongClickListener`(fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => Boolean): android.widget.AdapterView.OnItemLongClickListener = new android.widget.AdapterView.OnItemLongClickListener {
override def onItemLongClick(a: android.widget.AdapterView[_], b: android.view.View, c: Int, d: Long) = fn(a, b, c, d)
}
implicit def `fn0 to android.widget.AdapterView$OnItemLongClickListener`(fn: () => Boolean): android.widget.AdapterView.OnItemLongClickListener = new android.widget.AdapterView.OnItemLongClickListener {
override def onItemLongClick(a: android.widget.AdapterView[_], b: android.view.View, c: Int, d: Long) = fn()
}
implicit def `fn1 to android.widget.TabHost$OnTabChangeListener`[A](fn: (java.lang.String) => A): android.widget.TabHost.OnTabChangeListener = new android.widget.TabHost.OnTabChangeListener {
override def onTabChanged(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.widget.TabHost$OnTabChangeListener`[A](fn: () => A): android.widget.TabHost.OnTabChangeListener = new android.widget.TabHost.OnTabChangeListener {
override def onTabChanged(a: java.lang.String) = fn()
}
implicit def `fn3 to android.widget.TimePicker$OnTimeChangedListener`[A](fn: (android.widget.TimePicker, Int, Int) => A): android.widget.TimePicker.OnTimeChangedListener = new android.widget.TimePicker.OnTimeChangedListener {
override def onTimeChanged(a: android.widget.TimePicker, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.widget.TimePicker$OnTimeChangedListener`[A](fn: () => A): android.widget.TimePicker.OnTimeChangedListener = new android.widget.TimePicker.OnTimeChangedListener {
override def onTimeChanged(a: android.widget.TimePicker, b: Int, c: Int) = fn()
}
implicit def `fn2 to android.widget.ShareActionProvider$OnShareTargetSelectedListener`(fn: (android.widget.ShareActionProvider, android.content.Intent) => Boolean): android.widget.ShareActionProvider.OnShareTargetSelectedListener = new android.widget.ShareActionProvider.OnShareTargetSelectedListener {
override def onShareTargetSelected(a: android.widget.ShareActionProvider, b: android.content.Intent) = fn(a, b)
}
implicit def `fn0 to android.widget.ShareActionProvider$OnShareTargetSelectedListener`(fn: () => Boolean): android.widget.ShareActionProvider.OnShareTargetSelectedListener = new android.widget.ShareActionProvider.OnShareTargetSelectedListener {
override def onShareTargetSelected(a: android.widget.ShareActionProvider, b: android.content.Intent) = fn()
}
implicit def `fn1 to android.widget.ActionMenuView$OnMenuItemClickListener`(fn: (android.view.MenuItem) => Boolean): android.widget.ActionMenuView.OnMenuItemClickListener = new android.widget.ActionMenuView.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn(a)
}
implicit def `fn0 to android.widget.ActionMenuView$OnMenuItemClickListener`(fn: () => Boolean): android.widget.ActionMenuView.OnMenuItemClickListener = new android.widget.ActionMenuView.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn()
}
implicit def `fn0 to android.app.FragmentManager$OnBackStackChangedListener`[A](fn: () => A): android.app.FragmentManager.OnBackStackChangedListener = new android.app.FragmentManager.OnBackStackChangedListener {
override def onBackStackChanged() = fn()
}
implicit def `fn1 to android.app.KeyguardManager$OnKeyguardExitResult`[A](fn: (Boolean) => A): android.app.KeyguardManager.OnKeyguardExitResult = new android.app.KeyguardManager.OnKeyguardExitResult {
override def onKeyguardExitResult(a: Boolean) = fn(a)
}
implicit def `fn0 to android.app.KeyguardManager$OnKeyguardExitResult`[A](fn: () => A): android.app.KeyguardManager.OnKeyguardExitResult = new android.app.KeyguardManager.OnKeyguardExitResult {
override def onKeyguardExitResult(a: Boolean) = fn()
}
implicit def `fn4 to android.app.DatePickerDialog$OnDateSetListener`[A](fn: (android.widget.DatePicker, Int, Int, Int) => A): android.app.DatePickerDialog.OnDateSetListener = new android.app.DatePickerDialog.OnDateSetListener {
override def onDateSet(a: android.widget.DatePicker, b: Int, c: Int, d: Int) = fn(a, b, c, d)
}
implicit def `fn0 to android.app.DatePickerDialog$OnDateSetListener`[A](fn: () => A): android.app.DatePickerDialog.OnDateSetListener = new android.app.DatePickerDialog.OnDateSetListener {
override def onDateSet(a: android.widget.DatePicker, b: Int, c: Int, d: Int) = fn()
}
implicit def `fn5 to android.app.PendingIntent$OnFinished`[A](fn: (android.app.PendingIntent, android.content.Intent, Int, java.lang.String, android.os.Bundle) => A): android.app.PendingIntent.OnFinished = new android.app.PendingIntent.OnFinished {
override def onSendFinished(a: android.app.PendingIntent, b: android.content.Intent, c: Int, d: java.lang.String, e: android.os.Bundle) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.app.PendingIntent$OnFinished`[A](fn: () => A): android.app.PendingIntent.OnFinished = new android.app.PendingIntent.OnFinished {
override def onSendFinished(a: android.app.PendingIntent, b: android.content.Intent, c: Int, d: java.lang.String, e: android.os.Bundle) = fn()
}
implicit def `fn3 to android.app.TimePickerDialog$OnTimeSetListener`[A](fn: (android.widget.TimePicker, Int, Int) => A): android.app.TimePickerDialog.OnTimeSetListener = new android.app.TimePickerDialog.OnTimeSetListener {
override def onTimeSet(a: android.widget.TimePicker, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.app.TimePickerDialog$OnTimeSetListener`[A](fn: () => A): android.app.TimePickerDialog.OnTimeSetListener = new android.app.TimePickerDialog.OnTimeSetListener {
override def onTimeSet(a: android.widget.TimePicker, b: Int, c: Int) = fn()
}
implicit def `fn2 to android.app.ActionBar$OnNavigationListener`(fn: (Int, Long) => Boolean): android.app.ActionBar.OnNavigationListener = new android.app.ActionBar.OnNavigationListener {
override def onNavigationItemSelected(a: Int, b: Long) = fn(a, b)
}
implicit def `fn0 to android.app.ActionBar$OnNavigationListener`(fn: () => Boolean): android.app.ActionBar.OnNavigationListener = new android.app.ActionBar.OnNavigationListener {
override def onNavigationItemSelected(a: Int, b: Long) = fn()
}
implicit def `fn1 to android.app.UiAutomation$AccessibilityEventFilter`(fn: (android.view.accessibility.AccessibilityEvent) => Boolean): android.app.UiAutomation.AccessibilityEventFilter = new android.app.UiAutomation.AccessibilityEventFilter {
override def accept(a: android.view.accessibility.AccessibilityEvent) = fn(a)
}
implicit def `fn0 to android.app.UiAutomation$AccessibilityEventFilter`(fn: () => Boolean): android.app.UiAutomation.AccessibilityEventFilter = new android.app.UiAutomation.AccessibilityEventFilter {
override def accept(a: android.view.accessibility.AccessibilityEvent) = fn()
}
implicit def `fn1 to android.app.ActionBar$OnMenuVisibilityListener`[A](fn: (Boolean) => A): android.app.ActionBar.OnMenuVisibilityListener = new android.app.ActionBar.OnMenuVisibilityListener {
override def onMenuVisibilityChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.app.ActionBar$OnMenuVisibilityListener`[A](fn: () => A): android.app.ActionBar.OnMenuVisibilityListener = new android.app.ActionBar.OnMenuVisibilityListener {
override def onMenuVisibilityChanged(a: Boolean) = fn()
}
implicit def `fn2 to android.app.AppOpsManager$OnOpChangedListener`[A](fn: (java.lang.String, java.lang.String) => A): android.app.AppOpsManager.OnOpChangedListener = new android.app.AppOpsManager.OnOpChangedListener {
override def onOpChanged(a: java.lang.String, b: java.lang.String) = fn(a, b)
}
implicit def `fn0 to android.app.AppOpsManager$OnOpChangedListener`[A](fn: () => A): android.app.AppOpsManager.OnOpChangedListener = new android.app.AppOpsManager.OnOpChangedListener {
override def onOpChanged(a: java.lang.String, b: java.lang.String) = fn()
}
implicit def `fn1 to android.app.Notification$Action$Extender`(fn: (android.app.Notification.Action.Builder) => android.app.Notification.Action.Builder): android.app.Notification.Action.Extender = new android.app.Notification.Action.Extender {
override def extend(a: android.app.Notification.Action.Builder) = fn(a)
}
implicit def `fn0 to android.app.Notification$Action$Extender`(fn: () => android.app.Notification.Action.Builder): android.app.Notification.Action.Extender = new android.app.Notification.Action.Extender {
override def extend(a: android.app.Notification.Action.Builder) = fn()
}
implicit def `fn0 to android.app.SearchManager$OnCancelListener`[A](fn: () => A): android.app.SearchManager.OnCancelListener = new android.app.SearchManager.OnCancelListener {
override def onCancel() = fn()
}
implicit def `fn0 to android.app.SearchManager$OnDismissListener`[A](fn: () => A): android.app.SearchManager.OnDismissListener = new android.app.SearchManager.OnDismissListener {
override def onDismiss() = fn()
}
implicit def `fn1 to android.app.Notification$Extender`(fn: (android.app.Notification.Builder) => android.app.Notification.Builder): android.app.Notification.Extender = new android.app.Notification.Extender {
override def extend(a: android.app.Notification.Builder) = fn(a)
}
implicit def `fn0 to android.app.Notification$Extender`(fn: () => android.app.Notification.Builder): android.app.Notification.Extender = new android.app.Notification.Extender {
override def extend(a: android.app.Notification.Builder) = fn()
}
implicit def `fn2 to android.app.Application$OnProvideAssistDataListener`[A](fn: (android.app.Activity, android.os.Bundle) => A): android.app.Application.OnProvideAssistDataListener = new android.app.Application.OnProvideAssistDataListener {
override def onProvideAssistData(a: android.app.Activity, b: android.os.Bundle) = fn(a, b)
}
implicit def `fn0 to android.app.Application$OnProvideAssistDataListener`[A](fn: () => A): android.app.Application.OnProvideAssistDataListener = new android.app.Application.OnProvideAssistDataListener {
override def onProvideAssistData(a: android.app.Activity, b: android.os.Bundle) = fn()
}
implicit def `fn2 to android.app.FragmentBreadCrumbs$OnBreadCrumbClickListener`(fn: (android.app.FragmentManager.BackStackEntry, Int) => Boolean): android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener = new android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener {
override def onBreadCrumbClick(a: android.app.FragmentManager.BackStackEntry, b: Int) = fn(a, b)
}
implicit def `fn0 to android.app.FragmentBreadCrumbs$OnBreadCrumbClickListener`(fn: () => Boolean): android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener = new android.app.FragmentBreadCrumbs.OnBreadCrumbClickListener {
override def onBreadCrumbClick(a: android.app.FragmentManager.BackStackEntry, b: Int) = fn()
}
implicit def `fn1 to android.app.UiAutomation$OnAccessibilityEventListener`[A](fn: (android.view.accessibility.AccessibilityEvent) => A): android.app.UiAutomation.OnAccessibilityEventListener = new android.app.UiAutomation.OnAccessibilityEventListener {
override def onAccessibilityEvent(a: android.view.accessibility.AccessibilityEvent) = fn(a)
}
implicit def `fn0 to android.app.UiAutomation$OnAccessibilityEventListener`[A](fn: () => A): android.app.UiAutomation.OnAccessibilityEventListener = new android.app.UiAutomation.OnAccessibilityEventListener {
override def onAccessibilityEvent(a: android.view.accessibility.AccessibilityEvent) = fn()
}
implicit def `fn1 to android.speech.tts.TextToSpeech$OnInitListener`[A](fn: (Int) => A): android.speech.tts.TextToSpeech.OnInitListener = new android.speech.tts.TextToSpeech.OnInitListener {
override def onInit(a: Int) = fn(a)
}
implicit def `fn0 to android.speech.tts.TextToSpeech$OnInitListener`[A](fn: () => A): android.speech.tts.TextToSpeech.OnInitListener = new android.speech.tts.TextToSpeech.OnInitListener {
override def onInit(a: Int) = fn()
}
implicit def `fn1 to android.speech.tts.TextToSpeech$OnUtteranceCompletedListener`[A](fn: (java.lang.String) => A): android.speech.tts.TextToSpeech.OnUtteranceCompletedListener = new android.speech.tts.TextToSpeech.OnUtteranceCompletedListener {
override def onUtteranceCompleted(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.speech.tts.TextToSpeech$OnUtteranceCompletedListener`[A](fn: () => A): android.speech.tts.TextToSpeech.OnUtteranceCompletedListener = new android.speech.tts.TextToSpeech.OnUtteranceCompletedListener {
override def onUtteranceCompleted(a: java.lang.String) = fn()
}
implicit def `fn2 to android.media.MediaPlayer$OnBufferingUpdateListener`[A](fn: (android.media.MediaPlayer, Int) => A): android.media.MediaPlayer.OnBufferingUpdateListener = new android.media.MediaPlayer.OnBufferingUpdateListener {
override def onBufferingUpdate(a: android.media.MediaPlayer, b: Int) = fn(a, b)
}
implicit def `fn0 to android.media.MediaPlayer$OnBufferingUpdateListener`[A](fn: () => A): android.media.MediaPlayer.OnBufferingUpdateListener = new android.media.MediaPlayer.OnBufferingUpdateListener {
override def onBufferingUpdate(a: android.media.MediaPlayer, b: Int) = fn()
}
implicit def `fn1 to android.media.MediaPlayer$OnCompletionListener`[A](fn: (android.media.MediaPlayer) => A): android.media.MediaPlayer.OnCompletionListener = new android.media.MediaPlayer.OnCompletionListener {
override def onCompletion(a: android.media.MediaPlayer) = fn(a)
}
implicit def `fn0 to android.media.MediaPlayer$OnCompletionListener`[A](fn: () => A): android.media.MediaPlayer.OnCompletionListener = new android.media.MediaPlayer.OnCompletionListener {
override def onCompletion(a: android.media.MediaPlayer) = fn()
}
implicit def `fn1 to android.media.RemoteControlClient$OnPlaybackPositionUpdateListener`[A](fn: (Long) => A): android.media.RemoteControlClient.OnPlaybackPositionUpdateListener = new android.media.RemoteControlClient.OnPlaybackPositionUpdateListener {
override def onPlaybackPositionUpdate(a: Long) = fn(a)
}
implicit def `fn0 to android.media.RemoteControlClient$OnPlaybackPositionUpdateListener`[A](fn: () => A): android.media.RemoteControlClient.OnPlaybackPositionUpdateListener = new android.media.RemoteControlClient.OnPlaybackPositionUpdateListener {
override def onPlaybackPositionUpdate(a: Long) = fn()
}
implicit def `fn1 to android.media.tv.TvView$OnUnhandledInputEventListener`(fn: (android.view.InputEvent) => Boolean): android.media.tv.TvView.OnUnhandledInputEventListener = new android.media.tv.TvView.OnUnhandledInputEventListener {
override def onUnhandledInputEvent(a: android.view.InputEvent) = fn(a)
}
implicit def `fn0 to android.media.tv.TvView$OnUnhandledInputEventListener`(fn: () => Boolean): android.media.tv.TvView.OnUnhandledInputEventListener = new android.media.tv.TvView.OnUnhandledInputEventListener {
override def onUnhandledInputEvent(a: android.view.InputEvent) = fn()
}
implicit def `fn3 to android.media.MediaPlayer$OnInfoListener`(fn: (android.media.MediaPlayer, Int, Int) => Boolean): android.media.MediaPlayer.OnInfoListener = new android.media.MediaPlayer.OnInfoListener {
override def onInfo(a: android.media.MediaPlayer, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.MediaPlayer$OnInfoListener`(fn: () => Boolean): android.media.MediaPlayer.OnInfoListener = new android.media.MediaPlayer.OnInfoListener {
override def onInfo(a: android.media.MediaPlayer, b: Int, c: Int) = fn()
}
implicit def `fn3 to android.media.MediaRecorder$OnInfoListener`[A](fn: (android.media.MediaRecorder, Int, Int) => A): android.media.MediaRecorder.OnInfoListener = new android.media.MediaRecorder.OnInfoListener {
override def onInfo(a: android.media.MediaRecorder, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.MediaRecorder$OnInfoListener`[A](fn: () => A): android.media.MediaRecorder.OnInfoListener = new android.media.MediaRecorder.OnInfoListener {
override def onInfo(a: android.media.MediaRecorder, b: Int, c: Int) = fn()
}
implicit def `fn2 to android.media.RemoteControlClient$OnMetadataUpdateListener`[A](fn: (Int, java.lang.Object) => A): android.media.RemoteControlClient.OnMetadataUpdateListener = new android.media.RemoteControlClient.OnMetadataUpdateListener {
override def onMetadataUpdate(a: Int, b: java.lang.Object) = fn(a, b)
}
implicit def `fn0 to android.media.RemoteControlClient$OnMetadataUpdateListener`[A](fn: () => A): android.media.RemoteControlClient.OnMetadataUpdateListener = new android.media.RemoteControlClient.OnMetadataUpdateListener {
override def onMetadataUpdate(a: Int, b: java.lang.Object) = fn()
}
implicit def `fn1 to android.media.session.MediaSessionManager$OnActiveSessionsChangedListener`[A](fn: (java.util.List[android.media.session.MediaController]) => A): android.media.session.MediaSessionManager.OnActiveSessionsChangedListener = new android.media.session.MediaSessionManager.OnActiveSessionsChangedListener {
override def onActiveSessionsChanged(a: java.util.List[android.media.session.MediaController]) = fn(a)
}
implicit def `fn0 to android.media.session.MediaSessionManager$OnActiveSessionsChangedListener`[A](fn: () => A): android.media.session.MediaSessionManager.OnActiveSessionsChangedListener = new android.media.session.MediaSessionManager.OnActiveSessionsChangedListener {
override def onActiveSessionsChanged(a: java.util.List[android.media.session.MediaController]) = fn()
}
implicit def `fn2 to android.media.effect.EffectUpdateListener`[A](fn: (android.media.effect.Effect, java.lang.Object) => A): android.media.effect.EffectUpdateListener = new android.media.effect.EffectUpdateListener {
override def onEffectUpdated(a: android.media.effect.Effect, b: java.lang.Object) = fn(a, b)
}
implicit def `fn0 to android.media.effect.EffectUpdateListener`[A](fn: () => A): android.media.effect.EffectUpdateListener = new android.media.effect.EffectUpdateListener {
override def onEffectUpdated(a: android.media.effect.Effect, b: java.lang.Object) = fn()
}
implicit def `fn3 to android.media.MediaPlayer$OnVideoSizeChangedListener`[A](fn: (android.media.MediaPlayer, Int, Int) => A): android.media.MediaPlayer.OnVideoSizeChangedListener = new android.media.MediaPlayer.OnVideoSizeChangedListener {
override def onVideoSizeChanged(a: android.media.MediaPlayer, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.MediaPlayer$OnVideoSizeChangedListener`[A](fn: () => A): android.media.MediaPlayer.OnVideoSizeChangedListener = new android.media.MediaPlayer.OnVideoSizeChangedListener {
override def onVideoSizeChanged(a: android.media.MediaPlayer, b: Int, c: Int) = fn()
}
implicit def `fn1 to android.media.ImageReader$OnImageAvailableListener`[A](fn: (android.media.ImageReader) => A): android.media.ImageReader.OnImageAvailableListener = new android.media.ImageReader.OnImageAvailableListener {
override def onImageAvailable(a: android.media.ImageReader) = fn(a)
}
implicit def `fn0 to android.media.ImageReader$OnImageAvailableListener`[A](fn: () => A): android.media.ImageReader.OnImageAvailableListener = new android.media.ImageReader.OnImageAvailableListener {
override def onImageAvailable(a: android.media.ImageReader) = fn()
}
implicit def `fn3 to android.media.MediaPlayer$OnErrorListener`(fn: (android.media.MediaPlayer, Int, Int) => Boolean): android.media.MediaPlayer.OnErrorListener = new android.media.MediaPlayer.OnErrorListener {
override def onError(a: android.media.MediaPlayer, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.MediaPlayer$OnErrorListener`(fn: () => Boolean): android.media.MediaPlayer.OnErrorListener = new android.media.MediaPlayer.OnErrorListener {
override def onError(a: android.media.MediaPlayer, b: Int, c: Int) = fn()
}
implicit def `fn3 to android.media.SoundPool$OnLoadCompleteListener`[A](fn: (android.media.SoundPool, Int, Int) => A): android.media.SoundPool.OnLoadCompleteListener = new android.media.SoundPool.OnLoadCompleteListener {
override def onLoadComplete(a: android.media.SoundPool, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.SoundPool$OnLoadCompleteListener`[A](fn: () => A): android.media.SoundPool.OnLoadCompleteListener = new android.media.SoundPool.OnLoadCompleteListener {
override def onLoadComplete(a: android.media.SoundPool, b: Int, c: Int) = fn()
}
implicit def `fn2 to android.media.MediaPlayer$OnTimedTextListener`[A](fn: (android.media.MediaPlayer, android.media.TimedText) => A): android.media.MediaPlayer.OnTimedTextListener = new android.media.MediaPlayer.OnTimedTextListener {
override def onTimedText(a: android.media.MediaPlayer, b: android.media.TimedText) = fn(a, b)
}
implicit def `fn0 to android.media.MediaPlayer$OnTimedTextListener`[A](fn: () => A): android.media.MediaPlayer.OnTimedTextListener = new android.media.MediaPlayer.OnTimedTextListener {
override def onTimedText(a: android.media.MediaPlayer, b: android.media.TimedText) = fn()
}
implicit def `fn1 to android.media.MediaPlayer$OnPreparedListener`[A](fn: (android.media.MediaPlayer) => A): android.media.MediaPlayer.OnPreparedListener = new android.media.MediaPlayer.OnPreparedListener {
override def onPrepared(a: android.media.MediaPlayer) = fn(a)
}
implicit def `fn0 to android.media.MediaPlayer$OnPreparedListener`[A](fn: () => A): android.media.MediaPlayer.OnPreparedListener = new android.media.MediaPlayer.OnPreparedListener {
override def onPrepared(a: android.media.MediaPlayer) = fn()
}
implicit def `fn1 to android.media.AudioManager$OnAudioFocusChangeListener`[A](fn: (Int) => A): android.media.AudioManager.OnAudioFocusChangeListener = new android.media.AudioManager.OnAudioFocusChangeListener {
override def onAudioFocusChange(a: Int) = fn(a)
}
implicit def `fn0 to android.media.AudioManager$OnAudioFocusChangeListener`[A](fn: () => A): android.media.AudioManager.OnAudioFocusChangeListener = new android.media.AudioManager.OnAudioFocusChangeListener {
override def onAudioFocusChange(a: Int) = fn()
}
implicit def `fn0 to android.media.RemoteControlClient$OnGetPlaybackPositionListener`(fn: () => Long): android.media.RemoteControlClient.OnGetPlaybackPositionListener = new android.media.RemoteControlClient.OnGetPlaybackPositionListener {
override def onGetPlaybackPosition() = fn()
}
implicit def `fn3 to android.media.MediaRecorder$OnErrorListener`[A](fn: (android.media.MediaRecorder, Int, Int) => A): android.media.MediaRecorder.OnErrorListener = new android.media.MediaRecorder.OnErrorListener {
override def onError(a: android.media.MediaRecorder, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.media.MediaRecorder$OnErrorListener`[A](fn: () => A): android.media.MediaRecorder.OnErrorListener = new android.media.MediaRecorder.OnErrorListener {
override def onError(a: android.media.MediaRecorder, b: Int, c: Int) = fn()
}
implicit def `fn2 to android.media.MediaScannerConnection$OnScanCompletedListener`[A](fn: (java.lang.String, android.net.Uri) => A): android.media.MediaScannerConnection.OnScanCompletedListener = new android.media.MediaScannerConnection.OnScanCompletedListener {
override def onScanCompleted(a: java.lang.String, b: android.net.Uri) = fn(a, b)
}
implicit def `fn0 to android.media.MediaScannerConnection$OnScanCompletedListener`[A](fn: () => A): android.media.MediaScannerConnection.OnScanCompletedListener = new android.media.MediaScannerConnection.OnScanCompletedListener {
override def onScanCompleted(a: java.lang.String, b: android.net.Uri) = fn()
}
implicit def `fn5 to android.media.MediaDrm$OnEventListener`[A](fn: (android.media.MediaDrm, Array[Byte], Int, Int, Array[Byte]) => A): android.media.MediaDrm.OnEventListener = new android.media.MediaDrm.OnEventListener {
override def onEvent(a: android.media.MediaDrm, b: Array[Byte], c: Int, d: Int, e: Array[Byte]) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.media.MediaDrm$OnEventListener`[A](fn: () => A): android.media.MediaDrm.OnEventListener = new android.media.MediaDrm.OnEventListener {
override def onEvent(a: android.media.MediaDrm, b: Array[Byte], c: Int, d: Int, e: Array[Byte]) = fn()
}
implicit def `fn1 to android.media.MediaPlayer$OnSeekCompleteListener`[A](fn: (android.media.MediaPlayer) => A): android.media.MediaPlayer.OnSeekCompleteListener = new android.media.MediaPlayer.OnSeekCompleteListener {
override def onSeekComplete(a: android.media.MediaPlayer) = fn(a)
}
implicit def `fn0 to android.media.MediaPlayer$OnSeekCompleteListener`[A](fn: () => A): android.media.MediaPlayer.OnSeekCompleteListener = new android.media.MediaPlayer.OnSeekCompleteListener {
override def onSeekComplete(a: android.media.MediaPlayer) = fn()
}
implicit def `fn2 to android.media.audiofx.AudioEffect$OnControlStatusChangeListener`[A](fn: (android.media.audiofx.AudioEffect, Boolean) => A): android.media.audiofx.AudioEffect.OnControlStatusChangeListener = new android.media.audiofx.AudioEffect.OnControlStatusChangeListener {
override def onControlStatusChange(a: android.media.audiofx.AudioEffect, b: Boolean) = fn(a, b)
}
implicit def `fn0 to android.media.audiofx.AudioEffect$OnControlStatusChangeListener`[A](fn: () => A): android.media.audiofx.AudioEffect.OnControlStatusChangeListener = new android.media.audiofx.AudioEffect.OnControlStatusChangeListener {
override def onControlStatusChange(a: android.media.audiofx.AudioEffect, b: Boolean) = fn()
}
implicit def `fn4 to android.media.audiofx.PresetReverb$OnParameterChangeListener`[A](fn: (android.media.audiofx.PresetReverb, Int, Int, Short) => A): android.media.audiofx.PresetReverb.OnParameterChangeListener = new android.media.audiofx.PresetReverb.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.PresetReverb, b: Int, c: Int, d: Short) = fn(a, b, c, d)
}
implicit def `fn0 to android.media.audiofx.PresetReverb$OnParameterChangeListener`[A](fn: () => A): android.media.audiofx.PresetReverb.OnParameterChangeListener = new android.media.audiofx.PresetReverb.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.PresetReverb, b: Int, c: Int, d: Short) = fn()
}
implicit def `fn4 to android.media.audiofx.Virtualizer$OnParameterChangeListener`[A](fn: (android.media.audiofx.Virtualizer, Int, Int, Short) => A): android.media.audiofx.Virtualizer.OnParameterChangeListener = new android.media.audiofx.Virtualizer.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.Virtualizer, b: Int, c: Int, d: Short) = fn(a, b, c, d)
}
implicit def `fn0 to android.media.audiofx.Virtualizer$OnParameterChangeListener`[A](fn: () => A): android.media.audiofx.Virtualizer.OnParameterChangeListener = new android.media.audiofx.Virtualizer.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.Virtualizer, b: Int, c: Int, d: Short) = fn()
}
implicit def `fn2 to android.media.audiofx.AudioEffect$OnEnableStatusChangeListener`[A](fn: (android.media.audiofx.AudioEffect, Boolean) => A): android.media.audiofx.AudioEffect.OnEnableStatusChangeListener = new android.media.audiofx.AudioEffect.OnEnableStatusChangeListener {
override def onEnableStatusChange(a: android.media.audiofx.AudioEffect, b: Boolean) = fn(a, b)
}
implicit def `fn0 to android.media.audiofx.AudioEffect$OnEnableStatusChangeListener`[A](fn: () => A): android.media.audiofx.AudioEffect.OnEnableStatusChangeListener = new android.media.audiofx.AudioEffect.OnEnableStatusChangeListener {
override def onEnableStatusChange(a: android.media.audiofx.AudioEffect, b: Boolean) = fn()
}
implicit def `fn4 to android.media.audiofx.BassBoost$OnParameterChangeListener`[A](fn: (android.media.audiofx.BassBoost, Int, Int, Short) => A): android.media.audiofx.BassBoost.OnParameterChangeListener = new android.media.audiofx.BassBoost.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.BassBoost, b: Int, c: Int, d: Short) = fn(a, b, c, d)
}
implicit def `fn0 to android.media.audiofx.BassBoost$OnParameterChangeListener`[A](fn: () => A): android.media.audiofx.BassBoost.OnParameterChangeListener = new android.media.audiofx.BassBoost.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.BassBoost, b: Int, c: Int, d: Short) = fn()
}
implicit def `fn5 to android.media.audiofx.Equalizer$OnParameterChangeListener`[A](fn: (android.media.audiofx.Equalizer, Int, Int, Int, Int) => A): android.media.audiofx.Equalizer.OnParameterChangeListener = new android.media.audiofx.Equalizer.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.Equalizer, b: Int, c: Int, d: Int, e: Int) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.media.audiofx.Equalizer$OnParameterChangeListener`[A](fn: () => A): android.media.audiofx.Equalizer.OnParameterChangeListener = new android.media.audiofx.Equalizer.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.Equalizer, b: Int, c: Int, d: Int, e: Int) = fn()
}
implicit def `fn4 to android.media.audiofx.EnvironmentalReverb$OnParameterChangeListener`[A](fn: (android.media.audiofx.EnvironmentalReverb, Int, Int, Int) => A): android.media.audiofx.EnvironmentalReverb.OnParameterChangeListener = new android.media.audiofx.EnvironmentalReverb.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.EnvironmentalReverb, b: Int, c: Int, d: Int) = fn(a, b, c, d)
}
implicit def `fn0 to android.media.audiofx.EnvironmentalReverb$OnParameterChangeListener`[A](fn: () => A): android.media.audiofx.EnvironmentalReverb.OnParameterChangeListener = new android.media.audiofx.EnvironmentalReverb.OnParameterChangeListener {
override def onParameterChange(a: android.media.audiofx.EnvironmentalReverb, b: Int, c: Int, d: Int) = fn()
}
implicit def `fn4 to android.database.sqlite.SQLiteDatabase$CursorFactory`(fn: (android.database.sqlite.SQLiteDatabase, android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery) => android.database.Cursor): android.database.sqlite.SQLiteDatabase.CursorFactory = new android.database.sqlite.SQLiteDatabase.CursorFactory {
override def newCursor(a: android.database.sqlite.SQLiteDatabase, b: android.database.sqlite.SQLiteCursorDriver, c: java.lang.String, d: android.database.sqlite.SQLiteQuery) = fn(a, b, c, d)
}
implicit def `fn0 to android.database.sqlite.SQLiteDatabase$CursorFactory`(fn: () => android.database.Cursor): android.database.sqlite.SQLiteDatabase.CursorFactory = new android.database.sqlite.SQLiteDatabase.CursorFactory {
override def newCursor(a: android.database.sqlite.SQLiteDatabase, b: android.database.sqlite.SQLiteCursorDriver, c: java.lang.String, d: android.database.sqlite.SQLiteQuery) = fn()
}
implicit def `fn1 to android.database.DatabaseErrorHandler`[A](fn: (android.database.sqlite.SQLiteDatabase) => A): android.database.DatabaseErrorHandler = new android.database.DatabaseErrorHandler {
override def onCorruption(a: android.database.sqlite.SQLiteDatabase) = fn(a)
}
implicit def `fn0 to android.database.DatabaseErrorHandler`[A](fn: () => A): android.database.DatabaseErrorHandler = new android.database.DatabaseErrorHandler {
override def onCorruption(a: android.database.sqlite.SQLiteDatabase) = fn()
}
implicit def `fn2 to android.gesture.GestureOverlayView$OnGesturePerformedListener`[A](fn: (android.gesture.GestureOverlayView, android.gesture.Gesture) => A): android.gesture.GestureOverlayView.OnGesturePerformedListener = new android.gesture.GestureOverlayView.OnGesturePerformedListener {
override def onGesturePerformed(a: android.gesture.GestureOverlayView, b: android.gesture.Gesture) = fn(a, b)
}
implicit def `fn0 to android.gesture.GestureOverlayView$OnGesturePerformedListener`[A](fn: () => A): android.gesture.GestureOverlayView.OnGesturePerformedListener = new android.gesture.GestureOverlayView.OnGesturePerformedListener {
override def onGesturePerformed(a: android.gesture.GestureOverlayView, b: android.gesture.Gesture) = fn()
}
implicit def `fn0 to android.test.TestSuiteProvider`(fn: () => junit.framework.TestSuite): android.test.TestSuiteProvider = new android.test.TestSuiteProvider {
override def getTestSuite() = fn()
}
implicit def `fn2 to android.text.TextUtils$EllipsizeCallback`[A](fn: (Int, Int) => A): android.text.TextUtils.EllipsizeCallback = new android.text.TextUtils.EllipsizeCallback {
override def ellipsized(a: Int, b: Int) = fn(a, b)
}
implicit def `fn0 to android.text.TextUtils$EllipsizeCallback`[A](fn: () => A): android.text.TextUtils.EllipsizeCallback = new android.text.TextUtils.EllipsizeCallback {
override def ellipsized(a: Int, b: Int) = fn()
}
implicit def `fn4 to android.text.Html$TagHandler`[A](fn: (Boolean, java.lang.String, android.text.Editable, org.xml.sax.XMLReader) => A): android.text.Html.TagHandler = new android.text.Html.TagHandler {
override def handleTag(a: Boolean, b: java.lang.String, c: android.text.Editable, d: org.xml.sax.XMLReader) = fn(a, b, c, d)
}
implicit def `fn0 to android.text.Html$TagHandler`[A](fn: () => A): android.text.Html.TagHandler = new android.text.Html.TagHandler {
override def handleTag(a: Boolean, b: java.lang.String, c: android.text.Editable, d: org.xml.sax.XMLReader) = fn()
}
implicit def `fn6 to android.text.InputFilter`(fn: (java.lang.CharSequence, Int, Int, android.text.Spanned, Int, Int) => java.lang.CharSequence): android.text.InputFilter = new android.text.InputFilter {
override def filter(a: java.lang.CharSequence, b: Int, c: Int, d: android.text.Spanned, e: Int, f: Int) = fn(a, b, c, d, e, f)
}
implicit def `fn0 to android.text.InputFilter`(fn: () => java.lang.CharSequence): android.text.InputFilter = new android.text.InputFilter {
override def filter(a: java.lang.CharSequence, b: Int, c: Int, d: android.text.Spanned, e: Int, f: Int) = fn()
}
implicit def `fn2 to android.text.util.Linkify$TransformFilter`(fn: (java.util.regex.Matcher, java.lang.String) => java.lang.String): android.text.util.Linkify.TransformFilter = new android.text.util.Linkify.TransformFilter {
override def transformUrl(a: java.util.regex.Matcher, b: java.lang.String) = fn(a, b)
}
implicit def `fn0 to android.text.util.Linkify$TransformFilter`(fn: () => java.lang.String): android.text.util.Linkify.TransformFilter = new android.text.util.Linkify.TransformFilter {
override def transformUrl(a: java.util.regex.Matcher, b: java.lang.String) = fn()
}
implicit def `fn3 to android.text.util.Linkify$MatchFilter`(fn: (java.lang.CharSequence, Int, Int) => Boolean): android.text.util.Linkify.MatchFilter = new android.text.util.Linkify.MatchFilter {
override def acceptMatch(a: java.lang.CharSequence, b: Int, c: Int) = fn(a, b, c)
}
implicit def `fn0 to android.text.util.Linkify$MatchFilter`(fn: () => Boolean): android.text.util.Linkify.MatchFilter = new android.text.util.Linkify.MatchFilter {
override def acceptMatch(a: java.lang.CharSequence, b: Int, c: Int) = fn()
}
implicit def `fn11 to android.text.style.LineBackgroundSpan`[A](fn: (android.graphics.Canvas, android.graphics.Paint, Int, Int, Int, Int, Int, java.lang.CharSequence, Int, Int, Int) => A): android.text.style.LineBackgroundSpan = new android.text.style.LineBackgroundSpan {
override def drawBackground(a: android.graphics.Canvas, b: android.graphics.Paint, c: Int, d: Int, e: Int, f: Int, g: Int, h: java.lang.CharSequence, i: Int, j: Int, k: Int) = fn(a, b, c, d, e, f, g, h, i, j, k)
}
implicit def `fn0 to android.text.style.LineBackgroundSpan`[A](fn: () => A): android.text.style.LineBackgroundSpan = new android.text.style.LineBackgroundSpan {
override def drawBackground(a: android.graphics.Canvas, b: android.graphics.Paint, c: Int, d: Int, e: Int, f: Int, g: Int, h: java.lang.CharSequence, i: Int, j: Int, k: Int) = fn()
}
implicit def `fn0 to android.text.style.DynamicDrawableSpan`(fn: () => android.graphics.drawable.Drawable): android.text.style.DynamicDrawableSpan = new android.text.style.DynamicDrawableSpan {
override def getDrawable() = fn()
}
implicit def `fn6 to android.text.style.LineHeightSpan`[A](fn: (java.lang.CharSequence, Int, Int, Int, Int, android.graphics.Paint.FontMetricsInt) => A): android.text.style.LineHeightSpan = new android.text.style.LineHeightSpan {
override def chooseHeight(a: java.lang.CharSequence, b: Int, c: Int, d: Int, e: Int, f: android.graphics.Paint.FontMetricsInt) = fn(a, b, c, d, e, f)
}
implicit def `fn0 to android.text.style.LineHeightSpan`[A](fn: () => A): android.text.style.LineHeightSpan = new android.text.style.LineHeightSpan {
override def chooseHeight(a: java.lang.CharSequence, b: Int, c: Int, d: Int, e: Int, f: android.graphics.Paint.FontMetricsInt) = fn()
}
implicit def `fn0 to android.text.style.AlignmentSpan`(fn: () => android.text.Layout.Alignment): android.text.style.AlignmentSpan = new android.text.style.AlignmentSpan {
override def getAlignment() = fn()
}
implicit def `fn1 to android.text.style.ClickableSpan`[A](fn: (android.view.View) => A): android.text.style.ClickableSpan = new android.text.style.ClickableSpan {
override def onClick(a: android.view.View) = fn(a)
}
implicit def `fn0 to android.text.style.ClickableSpan`[A](fn: () => A): android.text.style.ClickableSpan = new android.text.style.ClickableSpan {
override def onClick(a: android.view.View) = fn()
}
implicit def `fn1 to android.text.style.CharacterStyle`[A](fn: (android.text.TextPaint) => A): android.text.style.CharacterStyle = new android.text.style.CharacterStyle {
override def updateDrawState(a: android.text.TextPaint) = fn(a)
}
implicit def `fn0 to android.text.style.CharacterStyle`[A](fn: () => A): android.text.style.CharacterStyle = new android.text.style.CharacterStyle {
override def updateDrawState(a: android.text.TextPaint) = fn()
}
implicit def `fn0 to android.text.style.TabStopSpan`(fn: () => Int): android.text.style.TabStopSpan = new android.text.style.TabStopSpan {
override def getTabStop() = fn()
}
implicit def `fn1 to android.text.Html$ImageGetter`(fn: (java.lang.String) => android.graphics.drawable.Drawable): android.text.Html.ImageGetter = new android.text.Html.ImageGetter {
override def getDrawable(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.text.Html$ImageGetter`(fn: () => android.graphics.drawable.Drawable): android.text.Html.ImageGetter = new android.text.Html.ImageGetter {
override def getDrawable(a: java.lang.String) = fn()
}
implicit def `fn1 to android.renderscript.Allocation$OnBufferAvailableListener`[A](fn: (android.renderscript.Allocation) => A): android.renderscript.Allocation.OnBufferAvailableListener = new android.renderscript.Allocation.OnBufferAvailableListener {
override def onBufferAvailable(a: android.renderscript.Allocation) = fn(a)
}
implicit def `fn0 to android.renderscript.Allocation$OnBufferAvailableListener`[A](fn: () => A): android.renderscript.Allocation.OnBufferAvailableListener = new android.renderscript.Allocation.OnBufferAvailableListener {
override def onBufferAvailable(a: android.renderscript.Allocation) = fn()
}
implicit def `fn2 to android.hardware.Camera$PictureCallback`[A](fn: (Array[Byte], android.hardware.Camera) => A): android.hardware.Camera.PictureCallback = new android.hardware.Camera.PictureCallback {
override def onPictureTaken(a: Array[Byte], b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$PictureCallback`[A](fn: () => A): android.hardware.Camera.PictureCallback = new android.hardware.Camera.PictureCallback {
override def onPictureTaken(a: Array[Byte], b: android.hardware.Camera) = fn()
}
implicit def `fn2 to android.hardware.Camera$PreviewCallback`[A](fn: (Array[Byte], android.hardware.Camera) => A): android.hardware.Camera.PreviewCallback = new android.hardware.Camera.PreviewCallback {
override def onPreviewFrame(a: Array[Byte], b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$PreviewCallback`[A](fn: () => A): android.hardware.Camera.PreviewCallback = new android.hardware.Camera.PreviewCallback {
override def onPreviewFrame(a: Array[Byte], b: android.hardware.Camera) = fn()
}
implicit def `fn3 to android.hardware.Camera$OnZoomChangeListener`[A](fn: (Int, Boolean, android.hardware.Camera) => A): android.hardware.Camera.OnZoomChangeListener = new android.hardware.Camera.OnZoomChangeListener {
override def onZoomChange(a: Int, b: Boolean, c: android.hardware.Camera) = fn(a, b, c)
}
implicit def `fn0 to android.hardware.Camera$OnZoomChangeListener`[A](fn: () => A): android.hardware.Camera.OnZoomChangeListener = new android.hardware.Camera.OnZoomChangeListener {
override def onZoomChange(a: Int, b: Boolean, c: android.hardware.Camera) = fn()
}
implicit def `fn2 to android.hardware.Camera$FaceDetectionListener`[A](fn: (Array[android.hardware.Camera.Face], android.hardware.Camera) => A): android.hardware.Camera.FaceDetectionListener = new android.hardware.Camera.FaceDetectionListener {
override def onFaceDetection(a: Array[android.hardware.Camera.Face], b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$FaceDetectionListener`[A](fn: () => A): android.hardware.Camera.FaceDetectionListener = new android.hardware.Camera.FaceDetectionListener {
override def onFaceDetection(a: Array[android.hardware.Camera.Face], b: android.hardware.Camera) = fn()
}
implicit def `fn2 to android.hardware.Camera$ErrorCallback`[A](fn: (Int, android.hardware.Camera) => A): android.hardware.Camera.ErrorCallback = new android.hardware.Camera.ErrorCallback {
override def onError(a: Int, b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$ErrorCallback`[A](fn: () => A): android.hardware.Camera.ErrorCallback = new android.hardware.Camera.ErrorCallback {
override def onError(a: Int, b: android.hardware.Camera) = fn()
}
implicit def `fn1 to android.hardware.TriggerEventListener`[A](fn: (android.hardware.TriggerEvent) => A): android.hardware.TriggerEventListener = new android.hardware.TriggerEventListener {
override def onTrigger(a: android.hardware.TriggerEvent) = fn(a)
}
implicit def `fn0 to android.hardware.TriggerEventListener`[A](fn: () => A): android.hardware.TriggerEventListener = new android.hardware.TriggerEventListener {
override def onTrigger(a: android.hardware.TriggerEvent) = fn()
}
implicit def `fn2 to android.hardware.Camera$AutoFocusMoveCallback`[A](fn: (Boolean, android.hardware.Camera) => A): android.hardware.Camera.AutoFocusMoveCallback = new android.hardware.Camera.AutoFocusMoveCallback {
override def onAutoFocusMoving(a: Boolean, b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$AutoFocusMoveCallback`[A](fn: () => A): android.hardware.Camera.AutoFocusMoveCallback = new android.hardware.Camera.AutoFocusMoveCallback {
override def onAutoFocusMoving(a: Boolean, b: android.hardware.Camera) = fn()
}
implicit def `fn0 to android.hardware.Camera$ShutterCallback`[A](fn: () => A): android.hardware.Camera.ShutterCallback = new android.hardware.Camera.ShutterCallback {
override def onShutter() = fn()
}
implicit def `fn2 to android.hardware.Camera$AutoFocusCallback`[A](fn: (Boolean, android.hardware.Camera) => A): android.hardware.Camera.AutoFocusCallback = new android.hardware.Camera.AutoFocusCallback {
override def onAutoFocus(a: Boolean, b: android.hardware.Camera) = fn(a, b)
}
implicit def `fn0 to android.hardware.Camera$AutoFocusCallback`[A](fn: () => A): android.hardware.Camera.AutoFocusCallback = new android.hardware.Camera.AutoFocusCallback {
override def onAutoFocus(a: Boolean, b: android.hardware.Camera) = fn()
}
implicit def `fn0 to android.preference.PreferenceManager$OnActivityStopListener`[A](fn: () => A): android.preference.PreferenceManager.OnActivityStopListener = new android.preference.PreferenceManager.OnActivityStopListener {
override def onActivityStop() = fn()
}
implicit def `fn1 to android.preference.Preference$OnPreferenceClickListener`(fn: (android.preference.Preference) => Boolean): android.preference.Preference.OnPreferenceClickListener = new android.preference.Preference.OnPreferenceClickListener {
override def onPreferenceClick(a: android.preference.Preference) = fn(a)
}
implicit def `fn0 to android.preference.Preference$OnPreferenceClickListener`(fn: () => Boolean): android.preference.Preference.OnPreferenceClickListener = new android.preference.Preference.OnPreferenceClickListener {
override def onPreferenceClick(a: android.preference.Preference) = fn()
}
implicit def `fn0 to android.preference.PreferenceManager$OnActivityDestroyListener`[A](fn: () => A): android.preference.PreferenceManager.OnActivityDestroyListener = new android.preference.PreferenceManager.OnActivityDestroyListener {
override def onActivityDestroy() = fn()
}
implicit def `fn2 to android.preference.PreferenceFragment$OnPreferenceStartFragmentCallback`(fn: (android.preference.PreferenceFragment, android.preference.Preference) => Boolean): android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback = new android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback {
override def onPreferenceStartFragment(a: android.preference.PreferenceFragment, b: android.preference.Preference) = fn(a, b)
}
implicit def `fn0 to android.preference.PreferenceFragment$OnPreferenceStartFragmentCallback`(fn: () => Boolean): android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback = new android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback {
override def onPreferenceStartFragment(a: android.preference.PreferenceFragment, b: android.preference.Preference) = fn()
}
implicit def `fn2 to android.preference.Preference$OnPreferenceChangeListener`(fn: (android.preference.Preference, java.lang.Object) => Boolean): android.preference.Preference.OnPreferenceChangeListener = new android.preference.Preference.OnPreferenceChangeListener {
override def onPreferenceChange(a: android.preference.Preference, b: java.lang.Object) = fn(a, b)
}
implicit def `fn0 to android.preference.Preference$OnPreferenceChangeListener`(fn: () => Boolean): android.preference.Preference.OnPreferenceChangeListener = new android.preference.Preference.OnPreferenceChangeListener {
override def onPreferenceChange(a: android.preference.Preference, b: java.lang.Object) = fn()
}
implicit def `fn3 to android.preference.PreferenceManager$OnActivityResultListener`(fn: (Int, Int, android.content.Intent) => Boolean): android.preference.PreferenceManager.OnActivityResultListener = new android.preference.PreferenceManager.OnActivityResultListener {
override def onActivityResult(a: Int, b: Int, c: android.content.Intent) = fn(a, b, c)
}
implicit def `fn0 to android.preference.PreferenceManager$OnActivityResultListener`(fn: () => Boolean): android.preference.PreferenceManager.OnActivityResultListener = new android.preference.PreferenceManager.OnActivityResultListener {
override def onActivityResult(a: Int, b: Int, c: android.content.Intent) = fn()
}
implicit def `fn1 to android.util.Printer`[A](fn: (java.lang.String) => A): android.util.Printer = new android.util.Printer {
override def println(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.util.Printer`[A](fn: () => A): android.util.Printer = new android.util.Printer {
override def println(a: java.lang.String) = fn()
}
implicit def `fn2 to android.graphics.drawable.ShapeDrawable$ShaderFactory`(fn: (Int, Int) => android.graphics.Shader): android.graphics.drawable.ShapeDrawable.ShaderFactory = new android.graphics.drawable.ShapeDrawable.ShaderFactory {
override def resize(a: Int, b: Int) = fn(a, b)
}
implicit def `fn0 to android.graphics.drawable.ShapeDrawable$ShaderFactory`(fn: () => android.graphics.Shader): android.graphics.drawable.ShapeDrawable.ShaderFactory = new android.graphics.drawable.ShapeDrawable.ShaderFactory {
override def resize(a: Int, b: Int) = fn()
}
implicit def `fn2 to android.graphics.drawable.shapes.Shape`[A](fn: (android.graphics.Canvas, android.graphics.Paint) => A): android.graphics.drawable.shapes.Shape = new android.graphics.drawable.shapes.Shape {
override def draw(a: android.graphics.Canvas, b: android.graphics.Paint) = fn(a, b)
}
implicit def `fn0 to android.graphics.drawable.shapes.Shape`[A](fn: () => A): android.graphics.drawable.shapes.Shape = new android.graphics.drawable.shapes.Shape {
override def draw(a: android.graphics.Canvas, b: android.graphics.Paint) = fn()
}
implicit def `fn1 to android.graphics.SurfaceTexture$OnFrameAvailableListener`[A](fn: (android.graphics.SurfaceTexture) => A): android.graphics.SurfaceTexture.OnFrameAvailableListener = new android.graphics.SurfaceTexture.OnFrameAvailableListener {
override def onFrameAvailable(a: android.graphics.SurfaceTexture) = fn(a)
}
implicit def `fn0 to android.graphics.SurfaceTexture$OnFrameAvailableListener`[A](fn: () => A): android.graphics.SurfaceTexture.OnFrameAvailableListener = new android.graphics.SurfaceTexture.OnFrameAvailableListener {
override def onFrameAvailable(a: android.graphics.SurfaceTexture) = fn()
}
implicit def `fn1 to android.net.UrlQuerySanitizer$ValueSanitizer`(fn: (java.lang.String) => java.lang.String): android.net.UrlQuerySanitizer.ValueSanitizer = new android.net.UrlQuerySanitizer.ValueSanitizer {
override def sanitize(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.net.UrlQuerySanitizer$ValueSanitizer`(fn: () => java.lang.String): android.net.UrlQuerySanitizer.ValueSanitizer = new android.net.UrlQuerySanitizer.ValueSanitizer {
override def sanitize(a: java.lang.String) = fn()
}
implicit def `fn3 to android.net.wifi.p2p.WifiP2pManager$ServiceResponseListener`[A](fn: (Int, Array[Byte], android.net.wifi.p2p.WifiP2pDevice) => A): android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener {
override def onServiceAvailable(a: Int, b: Array[Byte], c: android.net.wifi.p2p.WifiP2pDevice) = fn(a, b, c)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$ServiceResponseListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener {
override def onServiceAvailable(a: Int, b: Array[Byte], c: android.net.wifi.p2p.WifiP2pDevice) = fn()
}
implicit def `fn1 to android.net.wifi.p2p.WifiP2pManager$PeerListListener`[A](fn: (android.net.wifi.p2p.WifiP2pDeviceList) => A): android.net.wifi.p2p.WifiP2pManager.PeerListListener = new android.net.wifi.p2p.WifiP2pManager.PeerListListener {
override def onPeersAvailable(a: android.net.wifi.p2p.WifiP2pDeviceList) = fn(a)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$PeerListListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.PeerListListener = new android.net.wifi.p2p.WifiP2pManager.PeerListListener {
override def onPeersAvailable(a: android.net.wifi.p2p.WifiP2pDeviceList) = fn()
}
implicit def `fn3 to android.net.wifi.p2p.WifiP2pManager$DnsSdServiceResponseListener`[A](fn: (java.lang.String, java.lang.String, android.net.wifi.p2p.WifiP2pDevice) => A): android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener {
override def onDnsSdServiceAvailable(a: java.lang.String, b: java.lang.String, c: android.net.wifi.p2p.WifiP2pDevice) = fn(a, b, c)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$DnsSdServiceResponseListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener {
override def onDnsSdServiceAvailable(a: java.lang.String, b: java.lang.String, c: android.net.wifi.p2p.WifiP2pDevice) = fn()
}
implicit def `fn1 to android.net.wifi.p2p.WifiP2pManager$GroupInfoListener`[A](fn: (android.net.wifi.p2p.WifiP2pGroup) => A): android.net.wifi.p2p.WifiP2pManager.GroupInfoListener = new android.net.wifi.p2p.WifiP2pManager.GroupInfoListener {
override def onGroupInfoAvailable(a: android.net.wifi.p2p.WifiP2pGroup) = fn(a)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$GroupInfoListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.GroupInfoListener = new android.net.wifi.p2p.WifiP2pManager.GroupInfoListener {
override def onGroupInfoAvailable(a: android.net.wifi.p2p.WifiP2pGroup) = fn()
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$ChannelListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.ChannelListener = new android.net.wifi.p2p.WifiP2pManager.ChannelListener {
override def onChannelDisconnected() = fn()
}
implicit def `fn3 to android.net.wifi.p2p.WifiP2pManager$DnsSdTxtRecordListener`[A](fn: (java.lang.String, java.util.Map[java.lang.String,java.lang.String], android.net.wifi.p2p.WifiP2pDevice) => A): android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener = new android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener {
override def onDnsSdTxtRecordAvailable(a: java.lang.String, b: java.util.Map[java.lang.String,java.lang.String], c: android.net.wifi.p2p.WifiP2pDevice) = fn(a, b, c)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$DnsSdTxtRecordListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener = new android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener {
override def onDnsSdTxtRecordAvailable(a: java.lang.String, b: java.util.Map[java.lang.String,java.lang.String], c: android.net.wifi.p2p.WifiP2pDevice) = fn()
}
implicit def `fn2 to android.net.wifi.p2p.WifiP2pManager$UpnpServiceResponseListener`[A](fn: (java.util.List[java.lang.String], android.net.wifi.p2p.WifiP2pDevice) => A): android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener {
override def onUpnpServiceAvailable(a: java.util.List[java.lang.String], b: android.net.wifi.p2p.WifiP2pDevice) = fn(a, b)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$UpnpServiceResponseListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener = new android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener {
override def onUpnpServiceAvailable(a: java.util.List[java.lang.String], b: android.net.wifi.p2p.WifiP2pDevice) = fn()
}
implicit def `fn1 to android.net.wifi.p2p.WifiP2pManager$ConnectionInfoListener`[A](fn: (android.net.wifi.p2p.WifiP2pInfo) => A): android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener = new android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener {
override def onConnectionInfoAvailable(a: android.net.wifi.p2p.WifiP2pInfo) = fn(a)
}
implicit def `fn0 to android.net.wifi.p2p.WifiP2pManager$ConnectionInfoListener`[A](fn: () => A): android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener = new android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener {
override def onConnectionInfoAvailable(a: android.net.wifi.p2p.WifiP2pInfo) = fn()
}
implicit def `fn0 to android.net.ConnectivityManager$OnNetworkActiveListener`[A](fn: () => A): android.net.ConnectivityManager.OnNetworkActiveListener = new android.net.ConnectivityManager.OnNetworkActiveListener {
override def onNetworkActive() = fn()
}
implicit def `fn1 to android.location.GpsStatus$Listener`[A](fn: (Int) => A): android.location.GpsStatus.Listener = new android.location.GpsStatus.Listener {
override def onGpsStatusChanged(a: Int) = fn(a)
}
implicit def `fn0 to android.location.GpsStatus$Listener`[A](fn: () => A): android.location.GpsStatus.Listener = new android.location.GpsStatus.Listener {
override def onGpsStatusChanged(a: Int) = fn()
}
implicit def `fn2 to android.location.GpsStatus$NmeaListener`[A](fn: (Long, java.lang.String) => A): android.location.GpsStatus.NmeaListener = new android.location.GpsStatus.NmeaListener {
override def onNmeaReceived(a: Long, b: java.lang.String) = fn(a, b)
}
implicit def `fn0 to android.location.GpsStatus$NmeaListener`[A](fn: () => A): android.location.GpsStatus.NmeaListener = new android.location.GpsStatus.NmeaListener {
override def onNmeaReceived(a: Long, b: java.lang.String) = fn()
}
implicit def `fn3 to android.webkit.WebView$FindListener`[A](fn: (Int, Int, Boolean) => A): android.webkit.WebView.FindListener = new android.webkit.WebView.FindListener {
override def onFindResultReceived(a: Int, b: Int, c: Boolean) = fn(a, b, c)
}
implicit def `fn0 to android.webkit.WebView$FindListener`[A](fn: () => A): android.webkit.WebView.FindListener = new android.webkit.WebView.FindListener {
override def onFindResultReceived(a: Int, b: Int, c: Boolean) = fn()
}
implicit def `fn2 to android.webkit.WebView$PictureListener`[A](fn: (android.webkit.WebView, android.graphics.Picture) => A): android.webkit.WebView.PictureListener = new android.webkit.WebView.PictureListener {
override def onNewPicture(a: android.webkit.WebView, b: android.graphics.Picture) = fn(a, b)
}
implicit def `fn0 to android.webkit.WebView$PictureListener`[A](fn: () => A): android.webkit.WebView.PictureListener = new android.webkit.WebView.PictureListener {
override def onNewPicture(a: android.webkit.WebView, b: android.graphics.Picture) = fn()
}
implicit def `fn1 to android.webkit.ValueCallback`[A,T](fn: (T) => A): android.webkit.ValueCallback[T] = new android.webkit.ValueCallback[T] {
override def onReceiveValue(a: T) = fn(a)
}
implicit def `fn0 to android.webkit.ValueCallback`[A,T](fn: () => A): android.webkit.ValueCallback[T] = new android.webkit.ValueCallback[T] {
override def onReceiveValue(a: T) = fn()
}
implicit def `fn5 to android.webkit.DownloadListener`[A](fn: (java.lang.String, java.lang.String, java.lang.String, java.lang.String, Long) => A): android.webkit.DownloadListener = new android.webkit.DownloadListener {
override def onDownloadStart(a: java.lang.String, b: java.lang.String, c: java.lang.String, d: java.lang.String, e: Long) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.webkit.DownloadListener`[A](fn: () => A): android.webkit.DownloadListener = new android.webkit.DownloadListener {
override def onDownloadStart(a: java.lang.String, b: java.lang.String, c: java.lang.String, d: java.lang.String, e: Long) = fn()
}
implicit def `fn1 to android.webkit.WebStorage$QuotaUpdater`[A](fn: (Long) => A): android.webkit.WebStorage.QuotaUpdater = new android.webkit.WebStorage.QuotaUpdater {
override def updateQuota(a: Long) = fn(a)
}
implicit def `fn0 to android.webkit.WebStorage$QuotaUpdater`[A](fn: () => A): android.webkit.WebStorage.QuotaUpdater = new android.webkit.WebStorage.QuotaUpdater {
override def updateQuota(a: Long) = fn()
}
implicit def `fn3 to android.webkit.GeolocationPermissions$Callback`[A](fn: (java.lang.String, Boolean, Boolean) => A): android.webkit.GeolocationPermissions.Callback = new android.webkit.GeolocationPermissions.Callback {
override def invoke(a: java.lang.String, b: Boolean, c: Boolean) = fn(a, b, c)
}
implicit def `fn0 to android.webkit.GeolocationPermissions$Callback`[A](fn: () => A): android.webkit.GeolocationPermissions.Callback = new android.webkit.GeolocationPermissions.Callback {
override def invoke(a: java.lang.String, b: Boolean, c: Boolean) = fn()
}
implicit def `fn2 to android.webkit.WebIconDatabase$IconListener`[A](fn: (java.lang.String, android.graphics.Bitmap) => A): android.webkit.WebIconDatabase.IconListener = new android.webkit.WebIconDatabase.IconListener {
override def onReceivedIcon(a: java.lang.String, b: android.graphics.Bitmap) = fn(a, b)
}
implicit def `fn0 to android.webkit.WebIconDatabase$IconListener`[A](fn: () => A): android.webkit.WebIconDatabase.IconListener = new android.webkit.WebIconDatabase.IconListener {
override def onReceivedIcon(a: java.lang.String, b: android.graphics.Bitmap) = fn()
}
implicit def `fn0 to android.webkit.WebChromeClient$CustomViewCallback`[A](fn: () => A): android.webkit.WebChromeClient.CustomViewCallback = new android.webkit.WebChromeClient.CustomViewCallback {
override def onCustomViewHidden() = fn()
}
implicit def `fn1 to android.content.Loader$OnLoadCanceledListener`[A,D](fn: (android.content.Loader[D]) => A): android.content.Loader.OnLoadCanceledListener[D] = new android.content.Loader.OnLoadCanceledListener[D] {
override def onLoadCanceled(a: android.content.Loader[D]) = fn(a)
}
implicit def `fn0 to android.content.Loader$OnLoadCanceledListener`[A,D](fn: () => A): android.content.Loader.OnLoadCanceledListener[D] = new android.content.Loader.OnLoadCanceledListener[D] {
override def onLoadCanceled(a: android.content.Loader[D]) = fn()
}
implicit def `fn0 to android.content.ClipboardManager$OnPrimaryClipChangedListener`[A](fn: () => A): android.content.ClipboardManager.OnPrimaryClipChangedListener = new android.content.ClipboardManager.OnPrimaryClipChangedListener {
override def onPrimaryClipChanged() = fn()
}
implicit def `fn1 to android.content.SyncStatusObserver`[A](fn: (Int) => A): android.content.SyncStatusObserver = new android.content.SyncStatusObserver {
override def onStatusChanged(a: Int) = fn(a)
}
implicit def `fn0 to android.content.SyncStatusObserver`[A](fn: () => A): android.content.SyncStatusObserver = new android.content.SyncStatusObserver {
override def onStatusChanged(a: Int) = fn()
}
implicit def `fn1 to android.content.DialogInterface$OnCancelListener`[A](fn: (android.content.DialogInterface) => A): android.content.DialogInterface.OnCancelListener = new android.content.DialogInterface.OnCancelListener {
override def onCancel(a: android.content.DialogInterface) = fn(a)
}
implicit def `fn0 to android.content.DialogInterface$OnCancelListener`[A](fn: () => A): android.content.DialogInterface.OnCancelListener = new android.content.DialogInterface.OnCancelListener {
override def onCancel(a: android.content.DialogInterface) = fn()
}
implicit def `fn2 to android.content.DialogInterface$OnClickListener`[A](fn: (android.content.DialogInterface, Int) => A): android.content.DialogInterface.OnClickListener = new android.content.DialogInterface.OnClickListener {
override def onClick(a: android.content.DialogInterface, b: Int) = fn(a, b)
}
implicit def `fn0 to android.content.DialogInterface$OnClickListener`[A](fn: () => A): android.content.DialogInterface.OnClickListener = new android.content.DialogInterface.OnClickListener {
override def onClick(a: android.content.DialogInterface, b: Int) = fn()
}
implicit def `fn2 to android.content.SharedPreferences$OnSharedPreferenceChangeListener`[A](fn: (android.content.SharedPreferences, java.lang.String) => A): android.content.SharedPreferences.OnSharedPreferenceChangeListener = new android.content.SharedPreferences.OnSharedPreferenceChangeListener {
override def onSharedPreferenceChanged(a: android.content.SharedPreferences, b: java.lang.String) = fn(a, b)
}
implicit def `fn0 to android.content.SharedPreferences$OnSharedPreferenceChangeListener`[A](fn: () => A): android.content.SharedPreferences.OnSharedPreferenceChangeListener = new android.content.SharedPreferences.OnSharedPreferenceChangeListener {
override def onSharedPreferenceChanged(a: android.content.SharedPreferences, b: java.lang.String) = fn()
}
implicit def `fn2 to android.content.Loader$OnLoadCompleteListener`[A,D](fn: (android.content.Loader[D], D) => A): android.content.Loader.OnLoadCompleteListener[D] = new android.content.Loader.OnLoadCompleteListener[D] {
override def onLoadComplete(a: android.content.Loader[D], b: D) = fn(a, b)
}
implicit def `fn0 to android.content.Loader$OnLoadCompleteListener`[A,D](fn: () => A): android.content.Loader.OnLoadCompleteListener[D] = new android.content.Loader.OnLoadCompleteListener[D] {
override def onLoadComplete(a: android.content.Loader[D], b: D) = fn()
}
implicit def `fn5 to android.content.ContentProvider$PipeDataWriter`[A,T](fn: (android.os.ParcelFileDescriptor, android.net.Uri, java.lang.String, android.os.Bundle, T) => A): android.content.ContentProvider.PipeDataWriter[T] = new android.content.ContentProvider.PipeDataWriter[T] {
override def writeDataToPipe(a: android.os.ParcelFileDescriptor, b: android.net.Uri, c: java.lang.String, d: android.os.Bundle, e: T) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.content.ContentProvider$PipeDataWriter`[A,T](fn: () => A): android.content.ContentProvider.PipeDataWriter[T] = new android.content.ContentProvider.PipeDataWriter[T] {
override def writeDataToPipe(a: android.os.ParcelFileDescriptor, b: android.net.Uri, c: java.lang.String, d: android.os.Bundle, e: T) = fn()
}
implicit def `fn1 to android.content.DialogInterface$OnShowListener`[A](fn: (android.content.DialogInterface) => A): android.content.DialogInterface.OnShowListener = new android.content.DialogInterface.OnShowListener {
override def onShow(a: android.content.DialogInterface) = fn(a)
}
implicit def `fn0 to android.content.DialogInterface$OnShowListener`[A](fn: () => A): android.content.DialogInterface.OnShowListener = new android.content.DialogInterface.OnShowListener {
override def onShow(a: android.content.DialogInterface) = fn()
}
implicit def `fn1 to android.content.DialogInterface$OnDismissListener`[A](fn: (android.content.DialogInterface) => A): android.content.DialogInterface.OnDismissListener = new android.content.DialogInterface.OnDismissListener {
override def onDismiss(a: android.content.DialogInterface) = fn(a)
}
implicit def `fn0 to android.content.DialogInterface$OnDismissListener`[A](fn: () => A): android.content.DialogInterface.OnDismissListener = new android.content.DialogInterface.OnDismissListener {
override def onDismiss(a: android.content.DialogInterface) = fn()
}
implicit def `fn5 to android.content.IntentSender$OnFinished`[A](fn: (android.content.IntentSender, android.content.Intent, Int, java.lang.String, android.os.Bundle) => A): android.content.IntentSender.OnFinished = new android.content.IntentSender.OnFinished {
override def onSendFinished(a: android.content.IntentSender, b: android.content.Intent, c: Int, d: java.lang.String, e: android.os.Bundle) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.content.IntentSender$OnFinished`[A](fn: () => A): android.content.IntentSender.OnFinished = new android.content.IntentSender.OnFinished {
override def onSendFinished(a: android.content.IntentSender, b: android.content.Intent, c: Int, d: java.lang.String, e: android.os.Bundle) = fn()
}
implicit def `fn3 to android.content.DialogInterface$OnMultiChoiceClickListener`[A](fn: (android.content.DialogInterface, Int, Boolean) => A): android.content.DialogInterface.OnMultiChoiceClickListener = new android.content.DialogInterface.OnMultiChoiceClickListener {
override def onClick(a: android.content.DialogInterface, b: Int, c: Boolean) = fn(a, b, c)
}
implicit def `fn0 to android.content.DialogInterface$OnMultiChoiceClickListener`[A](fn: () => A): android.content.DialogInterface.OnMultiChoiceClickListener = new android.content.DialogInterface.OnMultiChoiceClickListener {
override def onClick(a: android.content.DialogInterface, b: Int, c: Boolean) = fn()
}
implicit def `fn3 to android.content.DialogInterface$OnKeyListener`(fn: (android.content.DialogInterface, Int, android.view.KeyEvent) => Boolean): android.content.DialogInterface.OnKeyListener = new android.content.DialogInterface.OnKeyListener {
override def onKey(a: android.content.DialogInterface, b: Int, c: android.view.KeyEvent) = fn(a, b, c)
}
implicit def `fn0 to android.content.DialogInterface$OnKeyListener`(fn: () => Boolean): android.content.DialogInterface.OnKeyListener = new android.content.DialogInterface.OnKeyListener {
override def onKey(a: android.content.DialogInterface, b: Int, c: android.view.KeyEvent) = fn()
}
implicit def `fn2 to android.content.BroadcastReceiver`[A](fn: (android.content.Context, android.content.Intent) => A): android.content.BroadcastReceiver = new android.content.BroadcastReceiver {
override def onReceive(a: android.content.Context, b: android.content.Intent) = fn(a, b)
}
implicit def `fn0 to android.content.BroadcastReceiver`[A](fn: () => A): android.content.BroadcastReceiver = new android.content.BroadcastReceiver {
override def onReceive(a: android.content.Context, b: android.content.Intent) = fn()
}
implicit def `fn1 to android.view.View$OnSystemUiVisibilityChangeListener`[A](fn: (Int) => A): android.view.View.OnSystemUiVisibilityChangeListener = new android.view.View.OnSystemUiVisibilityChangeListener {
override def onSystemUiVisibilityChange(a: Int) = fn(a)
}
implicit def `fn0 to android.view.View$OnSystemUiVisibilityChangeListener`[A](fn: () => A): android.view.View.OnSystemUiVisibilityChangeListener = new android.view.View.OnSystemUiVisibilityChangeListener {
override def onSystemUiVisibilityChange(a: Int) = fn()
}
implicit def `fn3 to android.view.View$OnKeyListener`(fn: (android.view.View, Int, android.view.KeyEvent) => Boolean): android.view.View.OnKeyListener = new android.view.View.OnKeyListener {
override def onKey(a: android.view.View, b: Int, c: android.view.KeyEvent) = fn(a, b, c)
}
implicit def `fn0 to android.view.View$OnKeyListener`(fn: () => Boolean): android.view.View.OnKeyListener = new android.view.View.OnKeyListener {
override def onKey(a: android.view.View, b: Int, c: android.view.KeyEvent) = fn()
}
implicit def `fn0 to android.view.ViewTreeObserver$OnDrawListener`[A](fn: () => A): android.view.ViewTreeObserver.OnDrawListener = new android.view.ViewTreeObserver.OnDrawListener {
override def onDraw() = fn()
}
implicit def `fn1 to android.view.LayoutInflater$Filter`(fn: (java.lang.Class[_]) => Boolean): android.view.LayoutInflater.Filter = new android.view.LayoutInflater.Filter {
override def onLoadClass(a: java.lang.Class[_]) = fn(a)
}
implicit def `fn0 to android.view.LayoutInflater$Filter`(fn: () => Boolean): android.view.LayoutInflater.Filter = new android.view.LayoutInflater.Filter {
override def onLoadClass(a: java.lang.Class[_]) = fn()
}
implicit def `fn1 to android.view.ViewTreeObserver$OnWindowFocusChangeListener`[A](fn: (Boolean) => A): android.view.ViewTreeObserver.OnWindowFocusChangeListener = new android.view.ViewTreeObserver.OnWindowFocusChangeListener {
override def onWindowFocusChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.view.ViewTreeObserver$OnWindowFocusChangeListener`[A](fn: () => A): android.view.ViewTreeObserver.OnWindowFocusChangeListener = new android.view.ViewTreeObserver.OnWindowFocusChangeListener {
override def onWindowFocusChanged(a: Boolean) = fn()
}
implicit def `fn2 to android.view.ViewStub$OnInflateListener`[A](fn: (android.view.ViewStub, android.view.View) => A): android.view.ViewStub.OnInflateListener = new android.view.ViewStub.OnInflateListener {
override def onInflate(a: android.view.ViewStub, b: android.view.View) = fn(a, b)
}
implicit def `fn0 to android.view.ViewStub$OnInflateListener`[A](fn: () => A): android.view.ViewStub.OnInflateListener = new android.view.ViewStub.OnInflateListener {
override def onInflate(a: android.view.ViewStub, b: android.view.View) = fn()
}
implicit def `fn3 to android.view.View$OnCreateContextMenuListener`[A](fn: (android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo) => A): android.view.View.OnCreateContextMenuListener = new android.view.View.OnCreateContextMenuListener {
override def onCreateContextMenu(a: android.view.ContextMenu, b: android.view.View, c: android.view.ContextMenu.ContextMenuInfo) = fn(a, b, c)
}
implicit def `fn0 to android.view.View$OnCreateContextMenuListener`[A](fn: () => A): android.view.View.OnCreateContextMenuListener = new android.view.View.OnCreateContextMenuListener {
override def onCreateContextMenu(a: android.view.ContextMenu, b: android.view.View, c: android.view.ContextMenu.ContextMenuInfo) = fn()
}
implicit def `fn0 to android.view.ViewTreeObserver$OnPreDrawListener`(fn: () => Boolean): android.view.ViewTreeObserver.OnPreDrawListener = new android.view.ViewTreeObserver.OnPreDrawListener {
override def onPreDraw() = fn()
}
implicit def `fn2 to android.view.View$OnGenericMotionListener`(fn: (android.view.View, android.view.MotionEvent) => Boolean): android.view.View.OnGenericMotionListener = new android.view.View.OnGenericMotionListener {
override def onGenericMotion(a: android.view.View, b: android.view.MotionEvent) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnGenericMotionListener`(fn: () => Boolean): android.view.View.OnGenericMotionListener = new android.view.View.OnGenericMotionListener {
override def onGenericMotion(a: android.view.View, b: android.view.MotionEvent) = fn()
}
implicit def `fn3 to android.view.LayoutInflater$Factory`(fn: (java.lang.String, android.content.Context, android.util.AttributeSet) => android.view.View): android.view.LayoutInflater.Factory = new android.view.LayoutInflater.Factory {
override def onCreateView(a: java.lang.String, b: android.content.Context, c: android.util.AttributeSet) = fn(a, b, c)
}
implicit def `fn0 to android.view.LayoutInflater$Factory`(fn: () => android.view.View): android.view.LayoutInflater.Factory = new android.view.LayoutInflater.Factory {
override def onCreateView(a: java.lang.String, b: android.content.Context, c: android.util.AttributeSet) = fn()
}
implicit def `fn1 to android.view.ActionProvider$VisibilityListener`[A](fn: (Boolean) => A): android.view.ActionProvider.VisibilityListener = new android.view.ActionProvider.VisibilityListener {
override def onActionProviderVisibilityChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.view.ActionProvider$VisibilityListener`[A](fn: () => A): android.view.ActionProvider.VisibilityListener = new android.view.ActionProvider.VisibilityListener {
override def onActionProviderVisibilityChanged(a: Boolean) = fn()
}
implicit def `fn1 to android.view.Choreographer$FrameCallback`[A](fn: (Long) => A): android.view.Choreographer.FrameCallback = new android.view.Choreographer.FrameCallback {
override def doFrame(a: Long) = fn(a)
}
implicit def `fn0 to android.view.Choreographer$FrameCallback`[A](fn: () => A): android.view.Choreographer.FrameCallback = new android.view.Choreographer.FrameCallback {
override def doFrame(a: Long) = fn()
}
implicit def `fn2 to android.view.View$OnFocusChangeListener`[A](fn: (android.view.View, Boolean) => A): android.view.View.OnFocusChangeListener = new android.view.View.OnFocusChangeListener {
override def onFocusChange(a: android.view.View, b: Boolean) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnFocusChangeListener`[A](fn: () => A): android.view.View.OnFocusChangeListener = new android.view.View.OnFocusChangeListener {
override def onFocusChange(a: android.view.View, b: Boolean) = fn()
}
implicit def `fn1 to android.view.View$OnLongClickListener`(fn: (android.view.View) => Boolean): android.view.View.OnLongClickListener = new android.view.View.OnLongClickListener {
override def onLongClick(a: android.view.View) = fn(a)
}
implicit def `fn0 to android.view.View$OnLongClickListener`(fn: () => Boolean): android.view.View.OnLongClickListener = new android.view.View.OnLongClickListener {
override def onLongClick(a: android.view.View) = fn()
}
implicit def `fn1 to android.view.View$OnClickListener`[A](fn: (android.view.View) => A): android.view.View.OnClickListener = new android.view.View.OnClickListener {
override def onClick(a: android.view.View) = fn(a)
}
implicit def `fn0 to android.view.View$OnClickListener`[A](fn: () => A): android.view.View.OnClickListener = new android.view.View.OnClickListener {
override def onClick(a: android.view.View) = fn()
}
implicit def `fn2 to android.view.View$OnDragListener`(fn: (android.view.View, android.view.DragEvent) => Boolean): android.view.View.OnDragListener = new android.view.View.OnDragListener {
override def onDrag(a: android.view.View, b: android.view.DragEvent) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnDragListener`(fn: () => Boolean): android.view.View.OnDragListener = new android.view.View.OnDragListener {
override def onDrag(a: android.view.View, b: android.view.DragEvent) = fn()
}
implicit def `fn2 to android.view.ViewTreeObserver$OnGlobalFocusChangeListener`[A](fn: (android.view.View, android.view.View) => A): android.view.ViewTreeObserver.OnGlobalFocusChangeListener = new android.view.ViewTreeObserver.OnGlobalFocusChangeListener {
override def onGlobalFocusChanged(a: android.view.View, b: android.view.View) = fn(a, b)
}
implicit def `fn0 to android.view.ViewTreeObserver$OnGlobalFocusChangeListener`[A](fn: () => A): android.view.ViewTreeObserver.OnGlobalFocusChangeListener = new android.view.ViewTreeObserver.OnGlobalFocusChangeListener {
override def onGlobalFocusChanged(a: android.view.View, b: android.view.View) = fn()
}
implicit def `fn2 to android.view.View$OnApplyWindowInsetsListener`(fn: (android.view.View, android.view.WindowInsets) => android.view.WindowInsets): android.view.View.OnApplyWindowInsetsListener = new android.view.View.OnApplyWindowInsetsListener {
override def onApplyWindowInsets(a: android.view.View, b: android.view.WindowInsets) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnApplyWindowInsetsListener`(fn: () => android.view.WindowInsets): android.view.View.OnApplyWindowInsetsListener = new android.view.View.OnApplyWindowInsetsListener {
override def onApplyWindowInsets(a: android.view.View, b: android.view.WindowInsets) = fn()
}
implicit def `fn0 to android.view.ViewTreeObserver$OnScrollChangedListener`[A](fn: () => A): android.view.ViewTreeObserver.OnScrollChangedListener = new android.view.ViewTreeObserver.OnScrollChangedListener {
override def onScrollChanged() = fn()
}
implicit def `fn9 to android.view.View$OnLayoutChangeListener`[A](fn: (android.view.View, Int, Int, Int, Int, Int, Int, Int, Int) => A): android.view.View.OnLayoutChangeListener = new android.view.View.OnLayoutChangeListener {
override def onLayoutChange(a: android.view.View, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int, h: Int, i: Int) = fn(a, b, c, d, e, f, g, h, i)
}
implicit def `fn0 to android.view.View$OnLayoutChangeListener`[A](fn: () => A): android.view.View.OnLayoutChangeListener = new android.view.View.OnLayoutChangeListener {
override def onLayoutChange(a: android.view.View, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int, h: Int, i: Int) = fn()
}
implicit def `fn1 to android.view.MenuItem$OnMenuItemClickListener`(fn: (android.view.MenuItem) => Boolean): android.view.MenuItem.OnMenuItemClickListener = new android.view.MenuItem.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn(a)
}
implicit def `fn0 to android.view.MenuItem$OnMenuItemClickListener`(fn: () => Boolean): android.view.MenuItem.OnMenuItemClickListener = new android.view.MenuItem.OnMenuItemClickListener {
override def onMenuItemClick(a: android.view.MenuItem) = fn()
}
implicit def `fn1 to android.view.ViewTreeObserver$OnTouchModeChangeListener`[A](fn: (Boolean) => A): android.view.ViewTreeObserver.OnTouchModeChangeListener = new android.view.ViewTreeObserver.OnTouchModeChangeListener {
override def onTouchModeChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.view.ViewTreeObserver$OnTouchModeChangeListener`[A](fn: () => A): android.view.ViewTreeObserver.OnTouchModeChangeListener = new android.view.ViewTreeObserver.OnTouchModeChangeListener {
override def onTouchModeChanged(a: Boolean) = fn()
}
implicit def `fn1 to android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener`[A](fn: (Boolean) => A): android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener = new android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener {
override def onAccessibilityStateChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.view.accessibility.AccessibilityManager$AccessibilityStateChangeListener`[A](fn: () => A): android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener = new android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener {
override def onAccessibilityStateChanged(a: Boolean) = fn()
}
implicit def `fn1 to android.view.accessibility.AccessibilityManager$TouchExplorationStateChangeListener`[A](fn: (Boolean) => A): android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener = new android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener {
override def onTouchExplorationStateChanged(a: Boolean) = fn(a)
}
implicit def `fn0 to android.view.accessibility.AccessibilityManager$TouchExplorationStateChangeListener`[A](fn: () => A): android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener = new android.view.accessibility.AccessibilityManager.TouchExplorationStateChangeListener {
override def onTouchExplorationStateChanged(a: Boolean) = fn()
}
implicit def `fn2 to android.view.View$OnHoverListener`(fn: (android.view.View, android.view.MotionEvent) => Boolean): android.view.View.OnHoverListener = new android.view.View.OnHoverListener {
override def onHover(a: android.view.View, b: android.view.MotionEvent) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnHoverListener`(fn: () => Boolean): android.view.View.OnHoverListener = new android.view.View.OnHoverListener {
override def onHover(a: android.view.View, b: android.view.MotionEvent) = fn()
}
implicit def `fn2 to android.view.inputmethod.InputMethodSession$EventCallback`[A](fn: (Int, Boolean) => A): android.view.inputmethod.InputMethodSession.EventCallback = new android.view.inputmethod.InputMethodSession.EventCallback {
override def finishedEvent(a: Int, b: Boolean) = fn(a, b)
}
implicit def `fn0 to android.view.inputmethod.InputMethodSession$EventCallback`[A](fn: () => A): android.view.inputmethod.InputMethodSession.EventCallback = new android.view.inputmethod.InputMethodSession.EventCallback {
override def finishedEvent(a: Int, b: Boolean) = fn()
}
implicit def `fn1 to android.view.inputmethod.InputMethod$SessionCallback`[A](fn: (android.view.inputmethod.InputMethodSession) => A): android.view.inputmethod.InputMethod.SessionCallback = new android.view.inputmethod.InputMethod.SessionCallback {
override def sessionCreated(a: android.view.inputmethod.InputMethodSession) = fn(a)
}
implicit def `fn0 to android.view.inputmethod.InputMethod$SessionCallback`[A](fn: () => A): android.view.inputmethod.InputMethod.SessionCallback = new android.view.inputmethod.InputMethod.SessionCallback {
override def sessionCreated(a: android.view.inputmethod.InputMethodSession) = fn()
}
implicit def `fn2 to android.view.ViewOutlineProvider`[A](fn: (android.view.View, android.graphics.Outline) => A): android.view.ViewOutlineProvider = new android.view.ViewOutlineProvider {
override def getOutline(a: android.view.View, b: android.graphics.Outline) = fn(a, b)
}
implicit def `fn0 to android.view.ViewOutlineProvider`[A](fn: () => A): android.view.ViewOutlineProvider = new android.view.ViewOutlineProvider {
override def getOutline(a: android.view.View, b: android.graphics.Outline) = fn()
}
implicit def `fn0 to android.view.ViewTreeObserver$OnGlobalLayoutListener`[A](fn: () => A): android.view.ViewTreeObserver.OnGlobalLayoutListener = new android.view.ViewTreeObserver.OnGlobalLayoutListener {
override def onGlobalLayout() = fn()
}
implicit def `fn2 to android.view.View$OnTouchListener`(fn: (android.view.View, android.view.MotionEvent) => Boolean): android.view.View.OnTouchListener = new android.view.View.OnTouchListener {
override def onTouch(a: android.view.View, b: android.view.MotionEvent) = fn(a, b)
}
implicit def `fn0 to android.view.View$OnTouchListener`(fn: () => Boolean): android.view.View.OnTouchListener = new android.view.View.OnTouchListener {
override def onTouch(a: android.view.View, b: android.view.MotionEvent) = fn()
}
implicit def `fn2 to android.opengl.GLSurfaceView$EGLConfigChooser`(fn: (javax.microedition.khronos.egl.EGL10, javax.microedition.khronos.egl.EGLDisplay) => javax.microedition.khronos.egl.EGLConfig): android.opengl.GLSurfaceView.EGLConfigChooser = new android.opengl.GLSurfaceView.EGLConfigChooser {
override def chooseConfig(a: javax.microedition.khronos.egl.EGL10, b: javax.microedition.khronos.egl.EGLDisplay) = fn(a, b)
}
implicit def `fn0 to android.opengl.GLSurfaceView$EGLConfigChooser`(fn: () => javax.microedition.khronos.egl.EGLConfig): android.opengl.GLSurfaceView.EGLConfigChooser = new android.opengl.GLSurfaceView.EGLConfigChooser {
override def chooseConfig(a: javax.microedition.khronos.egl.EGL10, b: javax.microedition.khronos.egl.EGLDisplay) = fn()
}
implicit def `fn1 to android.opengl.GLSurfaceView$GLWrapper`(fn: (javax.microedition.khronos.opengles.GL) => javax.microedition.khronos.opengles.GL): android.opengl.GLSurfaceView.GLWrapper = new android.opengl.GLSurfaceView.GLWrapper {
override def wrap(a: javax.microedition.khronos.opengles.GL) = fn(a)
}
implicit def `fn0 to android.opengl.GLSurfaceView$GLWrapper`(fn: () => javax.microedition.khronos.opengles.GL): android.opengl.GLSurfaceView.GLWrapper = new android.opengl.GLSurfaceView.GLWrapper {
override def wrap(a: javax.microedition.khronos.opengles.GL) = fn()
}
implicit def `fn5 to android.opengl.GLES31Ext$DebugProcKHR`[A](fn: (Int, Int, Int, Int, java.lang.String) => A): android.opengl.GLES31Ext.DebugProcKHR = new android.opengl.GLES31Ext.DebugProcKHR {
override def onMessage(a: Int, b: Int, c: Int, d: Int, e: java.lang.String) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.opengl.GLES31Ext$DebugProcKHR`[A](fn: () => A): android.opengl.GLES31Ext.DebugProcKHR = new android.opengl.GLES31Ext.DebugProcKHR {
override def onMessage(a: Int, b: Int, c: Int, d: Int, e: java.lang.String) = fn()
}
implicit def `fn1 to android.security.KeyChainAliasCallback`[A](fn: (java.lang.String) => A): android.security.KeyChainAliasCallback = new android.security.KeyChainAliasCallback {
override def alias(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.security.KeyChainAliasCallback`[A](fn: () => A): android.security.KeyChainAliasCallback = new android.security.KeyChainAliasCallback {
override def alias(a: java.lang.String) = fn()
}
implicit def `fn5 to android.service.restrictions.RestrictionsReceiver`[A](fn: (android.content.Context, java.lang.String, java.lang.String, java.lang.String, android.os.PersistableBundle) => A): android.service.restrictions.RestrictionsReceiver = new android.service.restrictions.RestrictionsReceiver {
override def onRequestPermission(a: android.content.Context, b: java.lang.String, c: java.lang.String, d: java.lang.String, e: android.os.PersistableBundle) = fn(a, b, c, d, e)
}
implicit def `fn0 to android.service.restrictions.RestrictionsReceiver`[A](fn: () => A): android.service.restrictions.RestrictionsReceiver = new android.service.restrictions.RestrictionsReceiver {
override def onRequestPermission(a: android.content.Context, b: java.lang.String, c: java.lang.String, d: java.lang.String, e: android.os.PersistableBundle) = fn()
}
implicit def `fn1 to android.service.carrier.CarrierMessagingService$ResultCallback`[A,T](fn: (T) => A): android.service.carrier.CarrierMessagingService.ResultCallback[T] = new android.service.carrier.CarrierMessagingService.ResultCallback[T] {
override def onReceiveResult(a: T) = fn(a)
}
implicit def `fn0 to android.service.carrier.CarrierMessagingService$ResultCallback`[A,T](fn: () => A): android.service.carrier.CarrierMessagingService.ResultCallback[T] = new android.service.carrier.CarrierMessagingService.ResultCallback[T] {
override def onReceiveResult(a: T) = fn()
}
implicit def `fn0 to android.os.MessageQueue$IdleHandler`(fn: () => Boolean): android.os.MessageQueue.IdleHandler = new android.os.MessageQueue.IdleHandler {
override def queueIdle() = fn()
}
implicit def `fn1 to android.os.RecoverySystem$ProgressListener`[A](fn: (Int) => A): android.os.RecoverySystem.ProgressListener = new android.os.RecoverySystem.ProgressListener {
override def onProgress(a: Int) = fn(a)
}
implicit def `fn0 to android.os.RecoverySystem$ProgressListener`[A](fn: () => A): android.os.RecoverySystem.ProgressListener = new android.os.RecoverySystem.ProgressListener {
override def onProgress(a: Int) = fn()
}
implicit def `fn1 to android.os.Handler$Callback`(fn: (android.os.Message) => Boolean): android.os.Handler.Callback = new android.os.Handler.Callback {
override def handleMessage(a: android.os.Message) = fn(a)
}
implicit def `fn0 to android.os.Handler$Callback`(fn: () => Boolean): android.os.Handler.Callback = new android.os.Handler.Callback {
override def handleMessage(a: android.os.Message) = fn()
}
implicit def `fn0 to android.os.IInterface`(fn: () => android.os.IBinder): android.os.IInterface = new android.os.IInterface {
override def asBinder() = fn()
}
implicit def `fn0 to android.os.CancellationSignal$OnCancelListener`[A](fn: () => A): android.os.CancellationSignal.OnCancelListener = new android.os.CancellationSignal.OnCancelListener {
override def onCancel() = fn()
}
implicit def `fn0 to android.os.IBinder$DeathRecipient`[A](fn: () => A): android.os.IBinder.DeathRecipient = new android.os.IBinder.DeathRecipient {
override def binderDied() = fn()
}
implicit def `fn1 to android.os.ParcelFileDescriptor$OnCloseListener`[A](fn: (java.io.IOException) => A): android.os.ParcelFileDescriptor.OnCloseListener = new android.os.ParcelFileDescriptor.OnCloseListener {
override def onClose(a: java.io.IOException) = fn(a)
}
implicit def `fn0 to android.os.ParcelFileDescriptor$OnCloseListener`[A](fn: () => A): android.os.ParcelFileDescriptor.OnCloseListener = new android.os.ParcelFileDescriptor.OnCloseListener {
override def onClose(a: java.io.IOException) = fn()
}
implicit def `fn3 to android.bluetooth.BluetoothAdapter$LeScanCallback`[A](fn: (android.bluetooth.BluetoothDevice, Int, Array[Byte]) => A): android.bluetooth.BluetoothAdapter.LeScanCallback = new android.bluetooth.BluetoothAdapter.LeScanCallback {
override def onLeScan(a: android.bluetooth.BluetoothDevice, b: Int, c: Array[Byte]) = fn(a, b, c)
}
implicit def `fn0 to android.bluetooth.BluetoothAdapter$LeScanCallback`[A](fn: () => A): android.bluetooth.BluetoothAdapter.LeScanCallback = new android.bluetooth.BluetoothAdapter.LeScanCallback {
override def onLeScan(a: android.bluetooth.BluetoothDevice, b: Int, c: Array[Byte]) = fn()
}
implicit def `fn0 to android.sax.EndElementListener`[A](fn: () => A): android.sax.EndElementListener = new android.sax.EndElementListener {
override def end() = fn()
}
implicit def `fn1 to android.sax.EndTextElementListener`[A](fn: (java.lang.String) => A): android.sax.EndTextElementListener = new android.sax.EndTextElementListener {
override def end(a: java.lang.String) = fn(a)
}
implicit def `fn0 to android.sax.EndTextElementListener`[A](fn: () => A): android.sax.EndTextElementListener = new android.sax.EndTextElementListener {
override def end(a: java.lang.String) = fn()
}
implicit def `fn1 to android.sax.StartElementListener`[A](fn: (org.xml.sax.Attributes) => A): android.sax.StartElementListener = new android.sax.StartElementListener {
override def start(a: org.xml.sax.Attributes) = fn(a)
}
implicit def `fn0 to android.sax.StartElementListener`[A](fn: () => A): android.sax.StartElementListener = new android.sax.StartElementListener {
override def start(a: org.xml.sax.Attributes) = fn()
}
}
package com.hanhuy.android
import conversions._
package object extensions {
implicit class ExtensionOfAnimator(val base: android.animation.Animator) extends AnyVal {
def interpolator0(fn: => Float) =
base.setInterpolator(`fn0 to android.animation.TimeInterpolator`(() => fn))
def interpolator(fn: (Float) => Float) =
base.setInterpolator(`fn1 to android.animation.TimeInterpolator`(fn))
def asScala = this
}
implicit class ExtensionOfTimeAnimator(val base: android.animation.TimeAnimator) extends AnyVal {
def time0[A](fn: => A) =
base.setTimeListener(`fn0 to android.animation.TimeAnimator$TimeListener`(() => fn))
def time[A](fn: (android.animation.TimeAnimator, Long, Long) => A) =
base.setTimeListener(`fn3 to android.animation.TimeAnimator$TimeListener`(fn))
def asScala = this
}
implicit class ExtensionOfValueAnimator(val base: android.animation.ValueAnimator) extends AnyVal {
def evaluator0[T](fn: => T) =
base.setEvaluator(`fn0 to android.animation.TypeEvaluator`(() => fn))
def evaluator[T](fn: (Float, T, T) => T) =
base.setEvaluator(`fn3 to android.animation.TypeEvaluator`(fn))
def interpolator0(fn: => Float) =
base.setInterpolator(`fn0 to android.animation.TimeInterpolator`(() => fn))
def interpolator(fn: (Float) => Float) =
base.setInterpolator(`fn1 to android.animation.TimeInterpolator`(fn))
def asScala = this
}
implicit class ExtensionOfKeyframe(val base: android.animation.Keyframe) extends AnyVal {
def interpolator0(fn: => Float) =
base.setInterpolator(`fn0 to android.animation.TimeInterpolator`(() => fn))
def interpolator(fn: (Float) => Float) =
base.setInterpolator(`fn1 to android.animation.TimeInterpolator`(fn))
def asScala = this
}
implicit class ExtensionOfAnimatorSet(val base: android.animation.AnimatorSet) extends AnyVal {
def interpolator0(fn: => Float) =
base.setInterpolator(`fn0 to android.animation.TimeInterpolator`(() => fn))
def interpolator(fn: (Float) => Float) =
base.setInterpolator(`fn1 to android.animation.TimeInterpolator`(fn))
def asScala = this
}
implicit class ExtensionOfPropertyValuesHolder(val base: android.animation.PropertyValuesHolder) extends AnyVal {
def evaluator0[T](fn: => T) =
base.setEvaluator(`fn0 to android.animation.TypeEvaluator`(() => fn))
def evaluator[T](fn: (Float, T, T) => T) =
base.setEvaluator(`fn3 to android.animation.TypeEvaluator`(fn))
def asScala = this
}
implicit class ExtensionOfDrmManagerClient(val base: android.drm.DrmManagerClient) extends AnyVal {
def onError0[A](fn: => A) =
base.setOnErrorListener(`fn0 to android.drm.DrmManagerClient$OnErrorListener`(() => fn))
def onError[A](fn: (android.drm.DrmManagerClient, android.drm.DrmErrorEvent) => A) =