Last active
August 29, 2015 14:22
-
-
Save pfn/b4dc88b80e846f1fbac1 to your computer and use it in GitHub Desktop.
android function generators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) = | |
base.setOnErrorListener(`fn2 to android.drm.DrmManagerClient$OnErrorListener`(fn)) | |
def onEvent0[A](fn: => A) = | |
base.setOnEventListener(`fn0 to android.drm.DrmManagerClient$OnEventListener`(() => fn)) | |
def onEvent[A](fn: (android.drm.DrmManagerClient, android.drm.DrmEvent) => A) = | |
base.setOnEventListener(`fn2 to android.drm.DrmManagerClient$OnEventListener`(fn)) | |
def onInfo0[A](fn: => A) = | |
base.setOnInfoListener(`fn0 to android.drm.DrmManagerClient$OnInfoListener`(() => fn)) | |
def onInfo[A](fn: (android.drm.DrmManagerClient, android.drm.DrmInfoEvent) => A) = | |
base.setOnInfoListener(`fn2 to android.drm.DrmManagerClient$OnInfoListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTransitionSet(val base: android.transition.TransitionSet) 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 epicenterCallback0(fn: => android.graphics.Rect) = | |
base.setEpicenterCallback(`fn0 to android.transition.Transition$EpicenterCallback`(() => fn)) | |
def epicenterCallback(fn: (android.transition.Transition) => android.graphics.Rect) = | |
base.setEpicenterCallback(`fn1 to android.transition.Transition$EpicenterCallback`(fn)) | |
def pathMotion0(fn: => android.graphics.Path) = | |
base.setPathMotion(`fn0 to android.transition.PathMotion`(() => fn)) | |
def pathMotion(fn: (Float, Float, Float, Float) => android.graphics.Path) = | |
base.setPathMotion(`fn4 to android.transition.PathMotion`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTransition(val base: android.transition.Transition) extends AnyVal { | |
def pathMotion0(fn: => android.graphics.Path) = | |
base.setPathMotion(`fn0 to android.transition.PathMotion`(() => fn)) | |
def pathMotion(fn: (Float, Float, Float, Float) => android.graphics.Path) = | |
base.setPathMotion(`fn4 to android.transition.PathMotion`(fn)) | |
def epicenterCallback0(fn: => android.graphics.Rect) = | |
base.setEpicenterCallback(`fn0 to android.transition.Transition$EpicenterCallback`(() => fn)) | |
def epicenterCallback(fn: (android.transition.Transition) => android.graphics.Rect) = | |
base.setEpicenterCallback(`fn1 to android.transition.Transition$EpicenterCallback`(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 ExtensionOfVideoView(val base: android.widget.VideoView) extends AnyVal { | |
def onInfo0(fn: => Boolean) = | |
base.setOnInfoListener(`fn0 to android.media.MediaPlayer$OnInfoListener`(() => fn)) | |
def onInfo(fn: (android.media.MediaPlayer, Int, Int) => Boolean) = | |
base.setOnInfoListener(`fn3 to android.media.MediaPlayer$OnInfoListener`(fn)) | |
def onError0(fn: => Boolean) = | |
base.setOnErrorListener(`fn0 to android.media.MediaPlayer$OnErrorListener`(() => fn)) | |
def onError(fn: (android.media.MediaPlayer, Int, Int) => Boolean) = | |
base.setOnErrorListener(`fn3 to android.media.MediaPlayer$OnErrorListener`(fn)) | |
def onCompletion0[A](fn: => A) = | |
base.setOnCompletionListener(`fn0 to android.media.MediaPlayer$OnCompletionListener`(() => fn)) | |
def onCompletion[A](fn: (android.media.MediaPlayer) => A) = | |
base.setOnCompletionListener(`fn1 to android.media.MediaPlayer$OnCompletionListener`(fn)) | |
def onPrepared0[A](fn: => A) = | |
base.setOnPreparedListener(`fn0 to android.media.MediaPlayer$OnPreparedListener`(() => fn)) | |
def onPrepared[A](fn: (android.media.MediaPlayer) => A) = | |
base.setOnPreparedListener(`fn1 to android.media.MediaPlayer$OnPreparedListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfNumberPicker(val base: android.widget.NumberPicker) extends AnyVal { | |
def formatter0(fn: => java.lang.String) = | |
base.setFormatter(`fn0 to android.widget.NumberPicker$Formatter`(() => fn)) | |
def formatter(fn: (Int) => java.lang.String) = | |
base.setFormatter(`fn1 to android.widget.NumberPicker$Formatter`(fn)) | |
def onScroll0[A](fn: => A) = | |
base.setOnScrollListener(`fn0 to android.widget.NumberPicker$OnScrollListener`(() => fn)) | |
def onScroll[A](fn: (android.widget.NumberPicker, Int) => A) = | |
base.setOnScrollListener(`fn2 to android.widget.NumberPicker$OnScrollListener`(fn)) | |
def onValueChanged0[A](fn: => A) = | |
base.setOnValueChangedListener(`fn0 to android.widget.NumberPicker$OnValueChangeListener`(() => fn)) | |
def onValueChanged[A](fn: (android.widget.NumberPicker, Int, Int) => A) = | |
base.setOnValueChangedListener(`fn3 to android.widget.NumberPicker$OnValueChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfRatingBar(val base: android.widget.RatingBar) extends AnyVal { | |
def onRatingBarChange0[A](fn: => A) = | |
base.setOnRatingBarChangeListener(`fn0 to android.widget.RatingBar$OnRatingBarChangeListener`(() => fn)) | |
def onRatingBarChange[A](fn: (android.widget.RatingBar, Float, Boolean) => A) = | |
base.setOnRatingBarChangeListener(`fn3 to android.widget.RatingBar$OnRatingBarChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfToolbar(val base: android.widget.Toolbar) extends AnyVal { | |
def onMenuItemClick0(fn: => Boolean) = | |
base.setOnMenuItemClickListener(`fn0 to android.widget.Toolbar$OnMenuItemClickListener`(() => fn)) | |
def onMenuItemClick(fn: (android.view.MenuItem) => Boolean) = | |
base.setOnMenuItemClickListener(`fn1 to android.widget.Toolbar$OnMenuItemClickListener`(fn)) | |
def navigationOnClick0[A](fn: => A) = | |
base.setNavigationOnClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def navigationOnClick[A](fn: (android.view.View) => A) = | |
base.setNavigationOnClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSlidingDrawer(val base: android.widget.SlidingDrawer) extends AnyVal { | |
def onDrawerClose[A](fn: => A) = | |
base.setOnDrawerCloseListener(`fn0 to android.widget.SlidingDrawer$OnDrawerCloseListener`(() => fn)) | |
def onDrawerOpen[A](fn: => A) = | |
base.setOnDrawerOpenListener(`fn0 to android.widget.SlidingDrawer$OnDrawerOpenListener`(() => fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCompoundButton(val base: android.widget.CompoundButton) extends AnyVal { | |
def onCheckedChange0[A](fn: => A) = | |
base.setOnCheckedChangeListener(`fn0 to android.widget.CompoundButton$OnCheckedChangeListener`(() => fn)) | |
def onCheckedChange[A](fn: (android.widget.CompoundButton, Boolean) => A) = | |
base.setOnCheckedChangeListener(`fn2 to android.widget.CompoundButton$OnCheckedChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTextView(val base: android.widget.TextView) extends AnyVal { | |
def onEditorAction0(fn: => Boolean) = | |
base.setOnEditorActionListener(`fn0 to android.widget.TextView$OnEditorActionListener`(() => fn)) | |
def onEditorAction(fn: (android.widget.TextView, Int, android.view.KeyEvent) => Boolean) = | |
base.setOnEditorActionListener(`fn3 to android.widget.TextView$OnEditorActionListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSpinner(val base: android.widget.Spinner) extends AnyVal { | |
def onItemClick0[A](fn: => A) = | |
base.setOnItemClickListener(`fn0 to android.widget.AdapterView$OnItemClickListener`(() => fn)) | |
def onItemClick[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A) = | |
base.setOnItemClickListener(`fn4 to android.widget.AdapterView$OnItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCursorTreeAdapter(val base: android.widget.CursorTreeAdapter) extends AnyVal { | |
def filterQueryProvider0(fn: => android.database.Cursor) = | |
base.setFilterQueryProvider(`fn0 to android.widget.FilterQueryProvider`(() => fn)) | |
def filterQueryProvider(fn: (java.lang.CharSequence) => android.database.Cursor) = | |
base.setFilterQueryProvider(`fn1 to android.widget.FilterQueryProvider`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfPopupMenu(val base: android.widget.PopupMenu) extends AnyVal { | |
def onDismiss0[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.widget.PopupMenu$OnDismissListener`(() => fn)) | |
def onDismiss[A](fn: (android.widget.PopupMenu) => A) = | |
base.setOnDismissListener(`fn1 to android.widget.PopupMenu$OnDismissListener`(fn)) | |
def onMenuItemClick0(fn: => Boolean) = | |
base.setOnMenuItemClickListener(`fn0 to android.widget.PopupMenu$OnMenuItemClickListener`(() => fn)) | |
def onMenuItemClick(fn: (android.view.MenuItem) => Boolean) = | |
base.setOnMenuItemClickListener(`fn1 to android.widget.PopupMenu$OnMenuItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfExpandableListView(val base: android.widget.ExpandableListView) extends AnyVal { | |
def onChildClick0(fn: => Boolean) = | |
base.setOnChildClickListener(`fn0 to android.widget.ExpandableListView$OnChildClickListener`(() => fn)) | |
def onChildClick(fn: (android.widget.ExpandableListView, android.view.View, Int, Int, Long) => Boolean) = | |
base.setOnChildClickListener(`fn5 to android.widget.ExpandableListView$OnChildClickListener`(fn)) | |
def onGroupClick0(fn: => Boolean) = | |
base.setOnGroupClickListener(`fn0 to android.widget.ExpandableListView$OnGroupClickListener`(() => fn)) | |
def onGroupClick(fn: (android.widget.ExpandableListView, android.view.View, Int, Long) => Boolean) = | |
base.setOnGroupClickListener(`fn4 to android.widget.ExpandableListView$OnGroupClickListener`(fn)) | |
def onGroupExpand0[A](fn: => A) = | |
base.setOnGroupExpandListener(`fn0 to android.widget.ExpandableListView$OnGroupExpandListener`(() => fn)) | |
def onGroupExpand[A](fn: (Int) => A) = | |
base.setOnGroupExpandListener(`fn1 to android.widget.ExpandableListView$OnGroupExpandListener`(fn)) | |
def onGroupCollapse0[A](fn: => A) = | |
base.setOnGroupCollapseListener(`fn0 to android.widget.ExpandableListView$OnGroupCollapseListener`(() => fn)) | |
def onGroupCollapse[A](fn: (Int) => A) = | |
base.setOnGroupCollapseListener(`fn1 to android.widget.ExpandableListView$OnGroupCollapseListener`(fn)) | |
def onItemClick0[A](fn: => A) = | |
base.setOnItemClickListener(`fn0 to android.widget.AdapterView$OnItemClickListener`(() => fn)) | |
def onItemClick[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A) = | |
base.setOnItemClickListener(`fn4 to android.widget.AdapterView$OnItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfChronometer(val base: android.widget.Chronometer) extends AnyVal { | |
def onChronometerTick0[A](fn: => A) = | |
base.setOnChronometerTickListener(`fn0 to android.widget.Chronometer$OnChronometerTickListener`(() => fn)) | |
def onChronometerTick[A](fn: (android.widget.Chronometer) => A) = | |
base.setOnChronometerTickListener(`fn1 to android.widget.Chronometer$OnChronometerTickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfListPopupWindow(val base: android.widget.ListPopupWindow) extends AnyVal { | |
def onDismiss[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.widget.PopupWindow$OnDismissListener`(() => fn)) | |
def onItemClick0[A](fn: => A) = | |
base.setOnItemClickListener(`fn0 to android.widget.AdapterView$OnItemClickListener`(() => fn)) | |
def onItemClick[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A) = | |
base.setOnItemClickListener(`fn4 to android.widget.AdapterView$OnItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfViewSwitcher(val base: android.widget.ViewSwitcher) extends AnyVal { | |
def factory(fn: => android.view.View) = | |
base.setFactory(`fn0 to android.widget.ViewSwitcher$ViewFactory`(() => fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfAbsListView(val base: android.widget.AbsListView) extends AnyVal { | |
def recycler0[A](fn: => A) = | |
base.setRecyclerListener(`fn0 to android.widget.AbsListView$RecyclerListener`(() => fn)) | |
def recycler[A](fn: (android.view.View) => A) = | |
base.setRecyclerListener(`fn1 to android.widget.AbsListView$RecyclerListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfZoomControls(val base: android.widget.ZoomControls) extends AnyVal { | |
def onZoomOutClick0[A](fn: => A) = | |
base.setOnZoomOutClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onZoomOutClick[A](fn: (android.view.View) => A) = | |
base.setOnZoomOutClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def onZoomInClick0[A](fn: => A) = | |
base.setOnZoomInClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onZoomInClick[A](fn: (android.view.View) => A) = | |
base.setOnZoomInClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfAdapterView(val base: android.widget.AdapterView[_]) extends AnyVal { | |
def onClick0[A](fn: => A) = | |
base.setOnClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onClick[A](fn: (android.view.View) => A) = | |
base.setOnClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def onItemLongClick0(fn: => Boolean) = | |
base.setOnItemLongClickListener(`fn0 to android.widget.AdapterView$OnItemLongClickListener`(() => fn)) | |
def onItemLongClick(fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => Boolean) = | |
base.setOnItemLongClickListener(`fn4 to android.widget.AdapterView$OnItemLongClickListener`(fn)) | |
def onItemClick0[A](fn: => A) = | |
base.setOnItemClickListener(`fn0 to android.widget.AdapterView$OnItemClickListener`(() => fn)) | |
def onItemClick[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A) = | |
base.setOnItemClickListener(`fn4 to android.widget.AdapterView$OnItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfShareActionProvider(val base: android.widget.ShareActionProvider) extends AnyVal { | |
def onShareTargetSelected0(fn: => Boolean) = | |
base.setOnShareTargetSelectedListener(`fn0 to android.widget.ShareActionProvider$OnShareTargetSelectedListener`(() => fn)) | |
def onShareTargetSelected(fn: (android.widget.ShareActionProvider, android.content.Intent) => Boolean) = | |
base.setOnShareTargetSelectedListener(`fn2 to android.widget.ShareActionProvider$OnShareTargetSelectedListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfPopupWindow(val base: android.widget.PopupWindow) extends AnyVal { | |
def onDismiss[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.widget.PopupWindow$OnDismissListener`(() => fn)) | |
def touchInterceptor0(fn: => Boolean) = | |
base.setTouchInterceptor(`fn0 to android.view.View$OnTouchListener`(() => fn)) | |
def touchInterceptor(fn: (android.view.View, android.view.MotionEvent) => Boolean) = | |
base.setTouchInterceptor(`fn2 to android.view.View$OnTouchListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSearchView(val base: android.widget.SearchView) extends AnyVal { | |
def onSearchClick0[A](fn: => A) = | |
base.setOnSearchClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onSearchClick[A](fn: (android.view.View) => A) = | |
base.setOnSearchClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def onQueryTextFocusChange0[A](fn: => A) = | |
base.setOnQueryTextFocusChangeListener(`fn0 to android.view.View$OnFocusChangeListener`(() => fn)) | |
def onQueryTextFocusChange[A](fn: (android.view.View, Boolean) => A) = | |
base.setOnQueryTextFocusChangeListener(`fn2 to android.view.View$OnFocusChangeListener`(fn)) | |
def onClose(fn: => Boolean) = | |
base.setOnCloseListener(`fn0 to android.widget.SearchView$OnCloseListener`(() => fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSimpleAdapter(val base: android.widget.SimpleAdapter) extends AnyVal { | |
def viewBinder0(fn: => Boolean) = | |
base.setViewBinder(`fn0 to android.widget.SimpleAdapter$ViewBinder`(() => fn)) | |
def viewBinder(fn: (android.view.View, java.lang.Object, java.lang.String) => Boolean) = | |
base.setViewBinder(`fn3 to android.widget.SimpleAdapter$ViewBinder`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSimpleCursorTreeAdapter(val base: android.widget.SimpleCursorTreeAdapter) extends AnyVal { | |
def viewBinder0(fn: => Boolean) = | |
base.setViewBinder(`fn0 to android.widget.SimpleCursorTreeAdapter$ViewBinder`(() => fn)) | |
def viewBinder(fn: (android.view.View, android.database.Cursor, Int) => Boolean) = | |
base.setViewBinder(`fn3 to android.widget.SimpleCursorTreeAdapter$ViewBinder`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCalendarView(val base: android.widget.CalendarView) extends AnyVal { | |
def onDateChange0[A](fn: => A) = | |
base.setOnDateChangeListener(`fn0 to android.widget.CalendarView$OnDateChangeListener`(() => fn)) | |
def onDateChange[A](fn: (android.widget.CalendarView, Int, Int, Int) => A) = | |
base.setOnDateChangeListener(`fn4 to android.widget.CalendarView$OnDateChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfActionMenuView(val base: android.widget.ActionMenuView) extends AnyVal { | |
def onMenuItemClick0(fn: => Boolean) = | |
base.setOnMenuItemClickListener(`fn0 to android.widget.ActionMenuView$OnMenuItemClickListener`(() => fn)) | |
def onMenuItemClick(fn: (android.view.MenuItem) => Boolean) = | |
base.setOnMenuItemClickListener(`fn1 to android.widget.ActionMenuView$OnMenuItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSimpleCursorAdapter(val base: android.widget.SimpleCursorAdapter) extends AnyVal { | |
def cursorToStringConverter0(fn: => java.lang.CharSequence) = | |
base.setCursorToStringConverter(`fn0 to android.widget.SimpleCursorAdapter$CursorToStringConverter`(() => fn)) | |
def cursorToStringConverter(fn: (android.database.Cursor) => java.lang.CharSequence) = | |
base.setCursorToStringConverter(`fn1 to android.widget.SimpleCursorAdapter$CursorToStringConverter`(fn)) | |
def viewBinder0(fn: => Boolean) = | |
base.setViewBinder(`fn0 to android.widget.SimpleCursorAdapter$ViewBinder`(() => fn)) | |
def viewBinder(fn: (android.view.View, android.database.Cursor, Int) => Boolean) = | |
base.setViewBinder(`fn3 to android.widget.SimpleCursorAdapter$ViewBinder`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTabHost(val base: android.widget.TabHost) extends AnyVal { | |
def onTabChanged0[A](fn: => A) = | |
base.setOnTabChangedListener(`fn0 to android.widget.TabHost$OnTabChangeListener`(() => fn)) | |
def onTabChanged[A](fn: (java.lang.String) => A) = | |
base.setOnTabChangedListener(`fn1 to android.widget.TabHost$OnTabChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfAutoCompleteTextView(val base: android.widget.AutoCompleteTextView) extends AnyVal { | |
def onDismiss[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.widget.AutoCompleteTextView$OnDismissListener`(() => fn)) | |
def onItemClick0[A](fn: => A) = | |
base.setOnItemClickListener(`fn0 to android.widget.AdapterView$OnItemClickListener`(() => fn)) | |
def onItemClick[A](fn: (android.widget.AdapterView[_], android.view.View, Int, Long) => A) = | |
base.setOnItemClickListener(`fn4 to android.widget.AdapterView$OnItemClickListener`(fn)) | |
def onClick0[A](fn: => A) = | |
base.setOnClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onClick[A](fn: (android.view.View) => A) = | |
base.setOnClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfRadioGroup(val base: android.widget.RadioGroup) extends AnyVal { | |
def onCheckedChange0[A](fn: => A) = | |
base.setOnCheckedChangeListener(`fn0 to android.widget.RadioGroup$OnCheckedChangeListener`(() => fn)) | |
def onCheckedChange[A](fn: (android.widget.RadioGroup, Int) => A) = | |
base.setOnCheckedChangeListener(`fn2 to android.widget.RadioGroup$OnCheckedChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCursorAdapter(val base: android.widget.CursorAdapter) extends AnyVal { | |
def filterQueryProvider0(fn: => android.database.Cursor) = | |
base.setFilterQueryProvider(`fn0 to android.widget.FilterQueryProvider`(() => fn)) | |
def filterQueryProvider(fn: (java.lang.CharSequence) => android.database.Cursor) = | |
base.setFilterQueryProvider(`fn1 to android.widget.FilterQueryProvider`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTimePicker(val base: android.widget.TimePicker) extends AnyVal { | |
def onTimeChanged0[A](fn: => A) = | |
base.setOnTimeChangedListener(`fn0 to android.widget.TimePicker$OnTimeChangedListener`(() => fn)) | |
def onTimeChanged[A](fn: (android.widget.TimePicker, Int, Int) => A) = | |
base.setOnTimeChangedListener(`fn3 to android.widget.TimePicker$OnTimeChangedListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfBuilder(val base: android.app.AlertDialog.Builder) extends AnyVal { | |
def onKey0(fn: => Boolean) = | |
base.setOnKeyListener(`fn0 to android.content.DialogInterface$OnKeyListener`(() => fn)) | |
def onKey(fn: (android.content.DialogInterface, Int, android.view.KeyEvent) => Boolean) = | |
base.setOnKeyListener(`fn3 to android.content.DialogInterface$OnKeyListener`(fn)) | |
def onDismiss0[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.content.DialogInterface$OnDismissListener`(() => fn)) | |
def onDismiss[A](fn: (android.content.DialogInterface) => A) = | |
base.setOnDismissListener(`fn1 to android.content.DialogInterface$OnDismissListener`(fn)) | |
def onCancel0[A](fn: => A) = | |
base.setOnCancelListener(`fn0 to android.content.DialogInterface$OnCancelListener`(() => fn)) | |
def onCancel[A](fn: (android.content.DialogInterface) => A) = | |
base.setOnCancelListener(`fn1 to android.content.DialogInterface$OnCancelListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfDialog(val base: android.app.Dialog) extends AnyVal { | |
def onKey0(fn: => Boolean) = | |
base.setOnKeyListener(`fn0 to android.content.DialogInterface$OnKeyListener`(() => fn)) | |
def onKey(fn: (android.content.DialogInterface, Int, android.view.KeyEvent) => Boolean) = | |
base.setOnKeyListener(`fn3 to android.content.DialogInterface$OnKeyListener`(fn)) | |
def onShow0[A](fn: => A) = | |
base.setOnShowListener(`fn0 to android.content.DialogInterface$OnShowListener`(() => fn)) | |
def onShow[A](fn: (android.content.DialogInterface) => A) = | |
base.setOnShowListener(`fn1 to android.content.DialogInterface$OnShowListener`(fn)) | |
def onDismiss0[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.content.DialogInterface$OnDismissListener`(() => fn)) | |
def onDismiss[A](fn: (android.content.DialogInterface) => A) = | |
base.setOnDismissListener(`fn1 to android.content.DialogInterface$OnDismissListener`(fn)) | |
def onCancel0[A](fn: => A) = | |
base.setOnCancelListener(`fn0 to android.content.DialogInterface$OnCancelListener`(() => fn)) | |
def onCancel[A](fn: (android.content.DialogInterface) => A) = | |
base.setOnCancelListener(`fn1 to android.content.DialogInterface$OnCancelListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfMediaRouteActionProvider(val base: android.app.MediaRouteActionProvider) extends AnyVal { | |
def extendedSettingsClick0[A](fn: => A) = | |
base.setExtendedSettingsClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def extendedSettingsClick[A](fn: (android.view.View) => A) = | |
base.setExtendedSettingsClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfMediaRouteButton(val base: android.app.MediaRouteButton) extends AnyVal { | |
def extendedSettingsClick0[A](fn: => A) = | |
base.setExtendedSettingsClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def extendedSettingsClick[A](fn: (android.view.View) => A) = | |
base.setExtendedSettingsClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfUiAutomation(val base: android.app.UiAutomation) extends AnyVal { | |
def onAccessibilityEvent0[A](fn: => A) = | |
base.setOnAccessibilityEventListener(`fn0 to android.app.UiAutomation$OnAccessibilityEventListener`(() => fn)) | |
def onAccessibilityEvent[A](fn: (android.view.accessibility.AccessibilityEvent) => A) = | |
base.setOnAccessibilityEventListener(`fn1 to android.app.UiAutomation$OnAccessibilityEventListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfFragmentBreadCrumbs(val base: android.app.FragmentBreadCrumbs) extends AnyVal { | |
def onBreadCrumbClick0(fn: => Boolean) = | |
base.setOnBreadCrumbClickListener(`fn0 to android.app.FragmentBreadCrumbs$OnBreadCrumbClickListener`(() => fn)) | |
def onBreadCrumbClick(fn: (android.app.FragmentManager.BackStackEntry, Int) => Boolean) = | |
base.setOnBreadCrumbClickListener(`fn2 to android.app.FragmentBreadCrumbs$OnBreadCrumbClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSearchManager(val base: android.app.SearchManager) extends AnyVal { | |
def onCancel[A](fn: => A) = | |
base.setOnCancelListener(`fn0 to android.app.SearchManager$OnCancelListener`(() => fn)) | |
def onDismiss[A](fn: => A) = | |
base.setOnDismissListener(`fn0 to android.app.SearchManager$OnDismissListener`(() => fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTextToSpeech(val base: android.speech.tts.TextToSpeech) extends AnyVal { | |
def onUtteranceCompleted0[A](fn: => A) = | |
base.setOnUtteranceCompletedListener(`fn0 to android.speech.tts.TextToSpeech$OnUtteranceCompletedListener`(() => fn)) | |
def onUtteranceCompleted[A](fn: (java.lang.String) => A) = | |
base.setOnUtteranceCompletedListener(`fn1 to android.speech.tts.TextToSpeech$OnUtteranceCompletedListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfMediaPlayer(val base: android.media.MediaPlayer) extends AnyVal { | |
def onInfo0(fn: => Boolean) = | |
base.setOnInfoListener(`fn0 to android.media.MediaPlayer$OnInfoListener`(() => fn)) | |
def onInfo(fn: (android.media.MediaPlayer, Int, Int) => Boolean) = | |
base.setOnInfoListener(`fn3 to android.media.MediaPlayer$OnInfoListener`(fn)) | |
def onError0(fn: => Boolean) = | |
base.setOnErrorListener(`fn0 to android.media.MediaPlayer$OnErrorListener`(() => fn)) | |
def onError(fn: (android.media.MediaPlayer, Int, Int) => Boolean) = | |
base.setOnErrorListener(`fn3 to android.media.MediaPlayer$OnErrorListener`(fn)) | |
def onTimedText0[A](fn: => A) = | |
base.setOnTimedTextListener(`fn0 to android.media.MediaPlayer$OnTimedTextListener`(() => fn)) | |
def onTimedText[A](fn: (android.media.MediaPlayer, android.media.TimedText) => A) = | |
base.setOnTimedTextListener(`fn2 to android.media.MediaPlayer$OnTimedTextListener`(fn)) | |
def onVideoSizeChanged0[A](fn: => A) = | |
base.setOnVideoSizeChangedListener(`fn0 to android.media.MediaPlayer$OnVideoSizeChangedListener`(() => fn)) | |
def onVideoSizeChanged[A](fn: (android.media.MediaPlayer, Int, Int) => A) = | |
base.setOnVideoSizeChangedListener(`fn3 to android.media.MediaPlayer$OnVideoSizeChangedListener`(fn)) | |
def onSeekComplete0[A](fn: => A) = | |
base.setOnSeekCompleteListener(`fn0 to android.media.MediaPlayer$OnSeekCompleteListener`(() => fn)) | |
def onSeekComplete[A](fn: (android.media.MediaPlayer) => A) = | |
base.setOnSeekCompleteListener(`fn1 to android.media.MediaPlayer$OnSeekCompleteListener`(fn)) | |
def onBufferingUpdate0[A](fn: => A) = | |
base.setOnBufferingUpdateListener(`fn0 to android.media.MediaPlayer$OnBufferingUpdateListener`(() => fn)) | |
def onBufferingUpdate[A](fn: (android.media.MediaPlayer, Int) => A) = | |
base.setOnBufferingUpdateListener(`fn2 to android.media.MediaPlayer$OnBufferingUpdateListener`(fn)) | |
def onCompletion0[A](fn: => A) = | |
base.setOnCompletionListener(`fn0 to android.media.MediaPlayer$OnCompletionListener`(() => fn)) | |
def onCompletion[A](fn: (android.media.MediaPlayer) => A) = | |
base.setOnCompletionListener(`fn1 to android.media.MediaPlayer$OnCompletionListener`(fn)) | |
def onPrepared0[A](fn: => A) = | |
base.setOnPreparedListener(`fn0 to android.media.MediaPlayer$OnPreparedListener`(() => fn)) | |
def onPrepared[A](fn: (android.media.MediaPlayer) => A) = | |
base.setOnPreparedListener(`fn1 to android.media.MediaPlayer$OnPreparedListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfTvView(val base: android.media.tv.TvView) extends AnyVal { | |
def onUnhandledInputEvent0(fn: => Boolean) = | |
base.setOnUnhandledInputEventListener(`fn0 to android.media.tv.TvView$OnUnhandledInputEventListener`(() => fn)) | |
def onUnhandledInputEvent(fn: (android.view.InputEvent) => Boolean) = | |
base.setOnUnhandledInputEventListener(`fn1 to android.media.tv.TvView$OnUnhandledInputEventListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfMediaDrm(val base: android.media.MediaDrm) extends AnyVal { | |
def onEvent0[A](fn: => A) = | |
base.setOnEventListener(`fn0 to android.media.MediaDrm$OnEventListener`(() => fn)) | |
def onEvent[A](fn: (android.media.MediaDrm, Array[Byte], Int, Int, Array[Byte]) => A) = | |
base.setOnEventListener(`fn5 to android.media.MediaDrm$OnEventListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfEffect(val base: android.media.effect.Effect) extends AnyVal { | |
def update0[A](fn: => A) = | |
base.setUpdateListener(`fn0 to android.media.effect.EffectUpdateListener`(() => fn)) | |
def update[A](fn: (android.media.effect.Effect, java.lang.Object) => A) = | |
base.setUpdateListener(`fn2 to android.media.effect.EffectUpdateListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfRemoteControlClient(val base: android.media.RemoteControlClient) extends AnyVal { | |
def onGetPlaybackPosition(fn: => Long) = | |
base.setOnGetPlaybackPositionListener(`fn0 to android.media.RemoteControlClient$OnGetPlaybackPositionListener`(() => fn)) | |
def playbackPositionUpdate0[A](fn: => A) = | |
base.setPlaybackPositionUpdateListener(`fn0 to android.media.RemoteControlClient$OnPlaybackPositionUpdateListener`(() => fn)) | |
def playbackPositionUpdate[A](fn: (Long) => A) = | |
base.setPlaybackPositionUpdateListener(`fn1 to android.media.RemoteControlClient$OnPlaybackPositionUpdateListener`(fn)) | |
def metadataUpdate0[A](fn: => A) = | |
base.setMetadataUpdateListener(`fn0 to android.media.RemoteControlClient$OnMetadataUpdateListener`(() => fn)) | |
def metadataUpdate[A](fn: (Int, java.lang.Object) => A) = | |
base.setMetadataUpdateListener(`fn2 to android.media.RemoteControlClient$OnMetadataUpdateListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfMediaRecorder(val base: android.media.MediaRecorder) extends AnyVal { | |
def onInfo0[A](fn: => A) = | |
base.setOnInfoListener(`fn0 to android.media.MediaRecorder$OnInfoListener`(() => fn)) | |
def onInfo[A](fn: (android.media.MediaRecorder, Int, Int) => A) = | |
base.setOnInfoListener(`fn3 to android.media.MediaRecorder$OnInfoListener`(fn)) | |
def onError0[A](fn: => A) = | |
base.setOnErrorListener(`fn0 to android.media.MediaRecorder$OnErrorListener`(() => fn)) | |
def onError[A](fn: (android.media.MediaRecorder, Int, Int) => A) = | |
base.setOnErrorListener(`fn3 to android.media.MediaRecorder$OnErrorListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSoundPool(val base: android.media.SoundPool) extends AnyVal { | |
def onLoadComplete0[A](fn: => A) = | |
base.setOnLoadCompleteListener(`fn0 to android.media.SoundPool$OnLoadCompleteListener`(() => fn)) | |
def onLoadComplete[A](fn: (android.media.SoundPool, Int, Int) => A) = | |
base.setOnLoadCompleteListener(`fn3 to android.media.SoundPool$OnLoadCompleteListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfEqualizer(val base: android.media.audiofx.Equalizer) extends AnyVal { | |
def parameter0[A](fn: => A) = | |
base.setParameterListener(`fn0 to android.media.audiofx.Equalizer$OnParameterChangeListener`(() => fn)) | |
def parameter[A](fn: (android.media.audiofx.Equalizer, Int, Int, Int, Int) => A) = | |
base.setParameterListener(`fn5 to android.media.audiofx.Equalizer$OnParameterChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfPresetReverb(val base: android.media.audiofx.PresetReverb) extends AnyVal { | |
def parameter0[A](fn: => A) = | |
base.setParameterListener(`fn0 to android.media.audiofx.PresetReverb$OnParameterChangeListener`(() => fn)) | |
def parameter[A](fn: (android.media.audiofx.PresetReverb, Int, Int, Short) => A) = | |
base.setParameterListener(`fn4 to android.media.audiofx.PresetReverb$OnParameterChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfVirtualizer(val base: android.media.audiofx.Virtualizer) extends AnyVal { | |
def parameter0[A](fn: => A) = | |
base.setParameterListener(`fn0 to android.media.audiofx.Virtualizer$OnParameterChangeListener`(() => fn)) | |
def parameter[A](fn: (android.media.audiofx.Virtualizer, Int, Int, Short) => A) = | |
base.setParameterListener(`fn4 to android.media.audiofx.Virtualizer$OnParameterChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfBassBoost(val base: android.media.audiofx.BassBoost) extends AnyVal { | |
def parameter0[A](fn: => A) = | |
base.setParameterListener(`fn0 to android.media.audiofx.BassBoost$OnParameterChangeListener`(() => fn)) | |
def parameter[A](fn: (android.media.audiofx.BassBoost, Int, Int, Short) => A) = | |
base.setParameterListener(`fn4 to android.media.audiofx.BassBoost$OnParameterChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfAudioEffect(val base: android.media.audiofx.AudioEffect) extends AnyVal { | |
def controlStatus0[A](fn: => A) = | |
base.setControlStatusListener(`fn0 to android.media.audiofx.AudioEffect$OnControlStatusChangeListener`(() => fn)) | |
def controlStatus[A](fn: (android.media.audiofx.AudioEffect, Boolean) => A) = | |
base.setControlStatusListener(`fn2 to android.media.audiofx.AudioEffect$OnControlStatusChangeListener`(fn)) | |
def enableStatus0[A](fn: => A) = | |
base.setEnableStatusListener(`fn0 to android.media.audiofx.AudioEffect$OnEnableStatusChangeListener`(() => fn)) | |
def enableStatus[A](fn: (android.media.audiofx.AudioEffect, Boolean) => A) = | |
base.setEnableStatusListener(`fn2 to android.media.audiofx.AudioEffect$OnEnableStatusChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfEnvironmentalReverb(val base: android.media.audiofx.EnvironmentalReverb) extends AnyVal { | |
def parameter0[A](fn: => A) = | |
base.setParameterListener(`fn0 to android.media.audiofx.EnvironmentalReverb$OnParameterChangeListener`(() => fn)) | |
def parameter[A](fn: (android.media.audiofx.EnvironmentalReverb, Int, Int, Int) => A) = | |
base.setParameterListener(`fn4 to android.media.audiofx.EnvironmentalReverb$OnParameterChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSQLiteQueryBuilder(val base: android.database.sqlite.SQLiteQueryBuilder) extends AnyVal { | |
def cursorFactory0(fn: => android.database.Cursor) = | |
base.setCursorFactory(`fn0 to android.database.sqlite.SQLiteDatabase$CursorFactory`(() => fn)) | |
def cursorFactory(fn: (android.database.sqlite.SQLiteDatabase, android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery) => android.database.Cursor) = | |
base.setCursorFactory(`fn4 to android.database.sqlite.SQLiteDatabase$CursorFactory`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfAllocation(val base: android.renderscript.Allocation) extends AnyVal { | |
def onBufferAvailable0[A](fn: => A) = | |
base.setOnBufferAvailableListener(`fn0 to android.renderscript.Allocation$OnBufferAvailableListener`(() => fn)) | |
def onBufferAvailable[A](fn: (android.renderscript.Allocation) => A) = | |
base.setOnBufferAvailableListener(`fn1 to android.renderscript.Allocation$OnBufferAvailableListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCamera(val base: android.hardware.Camera) extends AnyVal { | |
def errorCallback0[A](fn: => A) = | |
base.setErrorCallback(`fn0 to android.hardware.Camera$ErrorCallback`(() => fn)) | |
def errorCallback[A](fn: (Int, android.hardware.Camera) => A) = | |
base.setErrorCallback(`fn2 to android.hardware.Camera$ErrorCallback`(fn)) | |
def faceDetection0[A](fn: => A) = | |
base.setFaceDetectionListener(`fn0 to android.hardware.Camera$FaceDetectionListener`(() => fn)) | |
def faceDetection[A](fn: (Array[android.hardware.Camera.Face], android.hardware.Camera) => A) = | |
base.setFaceDetectionListener(`fn2 to android.hardware.Camera$FaceDetectionListener`(fn)) | |
def zoomChange0[A](fn: => A) = | |
base.setZoomChangeListener(`fn0 to android.hardware.Camera$OnZoomChangeListener`(() => fn)) | |
def zoomChange[A](fn: (Int, Boolean, android.hardware.Camera) => A) = | |
base.setZoomChangeListener(`fn3 to android.hardware.Camera$OnZoomChangeListener`(fn)) | |
def autoFocusMoveCallback0[A](fn: => A) = | |
base.setAutoFocusMoveCallback(`fn0 to android.hardware.Camera$AutoFocusMoveCallback`(() => fn)) | |
def autoFocusMoveCallback[A](fn: (Boolean, android.hardware.Camera) => A) = | |
base.setAutoFocusMoveCallback(`fn2 to android.hardware.Camera$AutoFocusMoveCallback`(fn)) | |
def previewCallbackWithBuffer0[A](fn: => A) = | |
base.setPreviewCallbackWithBuffer(`fn0 to android.hardware.Camera$PreviewCallback`(() => fn)) | |
def previewCallbackWithBuffer[A](fn: (Array[Byte], android.hardware.Camera) => A) = | |
base.setPreviewCallbackWithBuffer(`fn2 to android.hardware.Camera$PreviewCallback`(fn)) | |
def oneShotPreviewCallback0[A](fn: => A) = | |
base.setOneShotPreviewCallback(`fn0 to android.hardware.Camera$PreviewCallback`(() => fn)) | |
def oneShotPreviewCallback[A](fn: (Array[Byte], android.hardware.Camera) => A) = | |
base.setOneShotPreviewCallback(`fn2 to android.hardware.Camera$PreviewCallback`(fn)) | |
def previewCallback0[A](fn: => A) = | |
base.setPreviewCallback(`fn0 to android.hardware.Camera$PreviewCallback`(() => fn)) | |
def previewCallback[A](fn: (Array[Byte], android.hardware.Camera) => A) = | |
base.setPreviewCallback(`fn2 to android.hardware.Camera$PreviewCallback`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfPreference(val base: android.preference.Preference) extends AnyVal { | |
def onPreferenceClick0(fn: => Boolean) = | |
base.setOnPreferenceClickListener(`fn0 to android.preference.Preference$OnPreferenceClickListener`(() => fn)) | |
def onPreferenceClick(fn: (android.preference.Preference) => Boolean) = | |
base.setOnPreferenceClickListener(`fn1 to android.preference.Preference$OnPreferenceClickListener`(fn)) | |
def onPreferenceChange0(fn: => Boolean) = | |
base.setOnPreferenceChangeListener(`fn0 to android.preference.Preference$OnPreferenceChangeListener`(() => fn)) | |
def onPreferenceChange(fn: (android.preference.Preference, java.lang.Object) => Boolean) = | |
base.setOnPreferenceChangeListener(`fn2 to android.preference.Preference$OnPreferenceChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfSurfaceTexture(val base: android.graphics.SurfaceTexture) extends AnyVal { | |
def onFrameAvailable0[A](fn: => A) = | |
base.setOnFrameAvailableListener(`fn0 to android.graphics.SurfaceTexture$OnFrameAvailableListener`(() => fn)) | |
def onFrameAvailable[A](fn: (android.graphics.SurfaceTexture) => A) = | |
base.setOnFrameAvailableListener(`fn1 to android.graphics.SurfaceTexture$OnFrameAvailableListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfShapeDrawable(val base: android.graphics.drawable.ShapeDrawable) extends AnyVal { | |
def shaderFactory0(fn: => android.graphics.Shader) = | |
base.setShaderFactory(`fn0 to android.graphics.drawable.ShapeDrawable$ShaderFactory`(() => fn)) | |
def shaderFactory(fn: (Int, Int) => android.graphics.Shader) = | |
base.setShaderFactory(`fn2 to android.graphics.drawable.ShapeDrawable$ShaderFactory`(fn)) | |
def shape0[A](fn: => A) = | |
base.setShape(`fn0 to android.graphics.drawable.shapes.Shape`(() => fn)) | |
def shape[A](fn: (android.graphics.Canvas, android.graphics.Paint) => A) = | |
base.setShape(`fn2 to android.graphics.drawable.shapes.Shape`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfUrlQuerySanitizer(val base: android.net.UrlQuerySanitizer) extends AnyVal { | |
def unregisteredParameterValueSanitizer0(fn: => java.lang.String) = | |
base.setUnregisteredParameterValueSanitizer(`fn0 to android.net.UrlQuerySanitizer$ValueSanitizer`(() => fn)) | |
def unregisteredParameterValueSanitizer(fn: (java.lang.String) => java.lang.String) = | |
base.setUnregisteredParameterValueSanitizer(`fn1 to android.net.UrlQuerySanitizer$ValueSanitizer`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfWebView(val base: android.webkit.WebView) extends AnyVal { | |
def picture0[A](fn: => A) = | |
base.setPictureListener(`fn0 to android.webkit.WebView$PictureListener`(() => fn)) | |
def picture[A](fn: (android.webkit.WebView, android.graphics.Picture) => A) = | |
base.setPictureListener(`fn2 to android.webkit.WebView$PictureListener`(fn)) | |
def download0[A](fn: => A) = | |
base.setDownloadListener(`fn0 to android.webkit.DownloadListener`(() => fn)) | |
def download[A](fn: (java.lang.String, java.lang.String, java.lang.String, java.lang.String, Long) => A) = | |
base.setDownloadListener(`fn5 to android.webkit.DownloadListener`(fn)) | |
def find0[A](fn: => A) = | |
base.setFindListener(`fn0 to android.webkit.WebView$FindListener`(() => fn)) | |
def find[A](fn: (Int, Int, Boolean) => A) = | |
base.setFindListener(`fn3 to android.webkit.WebView$FindListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfView(val base: android.view.View) extends AnyVal { | |
def onSystemUiVisibilityChange0[A](fn: => A) = | |
base.setOnSystemUiVisibilityChangeListener(`fn0 to android.view.View$OnSystemUiVisibilityChangeListener`(() => fn)) | |
def onSystemUiVisibilityChange[A](fn: (Int) => A) = | |
base.setOnSystemUiVisibilityChangeListener(`fn1 to android.view.View$OnSystemUiVisibilityChangeListener`(fn)) | |
def outlineProvider0[A](fn: => A) = | |
base.setOutlineProvider(`fn0 to android.view.ViewOutlineProvider`(() => fn)) | |
def outlineProvider[A](fn: (android.view.View, android.graphics.Outline) => A) = | |
base.setOutlineProvider(`fn2 to android.view.ViewOutlineProvider`(fn)) | |
def onApplyWindowInsets0(fn: => android.view.WindowInsets) = | |
base.setOnApplyWindowInsetsListener(`fn0 to android.view.View$OnApplyWindowInsetsListener`(() => fn)) | |
def onApplyWindowInsets(fn: (android.view.View, android.view.WindowInsets) => android.view.WindowInsets) = | |
base.setOnApplyWindowInsetsListener(`fn2 to android.view.View$OnApplyWindowInsetsListener`(fn)) | |
def onDrag0(fn: => Boolean) = | |
base.setOnDragListener(`fn0 to android.view.View$OnDragListener`(() => fn)) | |
def onDrag(fn: (android.view.View, android.view.DragEvent) => Boolean) = | |
base.setOnDragListener(`fn2 to android.view.View$OnDragListener`(fn)) | |
def onHover0(fn: => Boolean) = | |
base.setOnHoverListener(`fn0 to android.view.View$OnHoverListener`(() => fn)) | |
def onHover(fn: (android.view.View, android.view.MotionEvent) => Boolean) = | |
base.setOnHoverListener(`fn2 to android.view.View$OnHoverListener`(fn)) | |
def onGenericMotion0(fn: => Boolean) = | |
base.setOnGenericMotionListener(`fn0 to android.view.View$OnGenericMotionListener`(() => fn)) | |
def onGenericMotion(fn: (android.view.View, android.view.MotionEvent) => Boolean) = | |
base.setOnGenericMotionListener(`fn2 to android.view.View$OnGenericMotionListener`(fn)) | |
def onTouch0(fn: => Boolean) = | |
base.setOnTouchListener(`fn0 to android.view.View$OnTouchListener`(() => fn)) | |
def onTouch(fn: (android.view.View, android.view.MotionEvent) => Boolean) = | |
base.setOnTouchListener(`fn2 to android.view.View$OnTouchListener`(fn)) | |
def onKey0(fn: => Boolean) = | |
base.setOnKeyListener(`fn0 to android.view.View$OnKeyListener`(() => fn)) | |
def onKey(fn: (android.view.View, Int, android.view.KeyEvent) => Boolean) = | |
base.setOnKeyListener(`fn3 to android.view.View$OnKeyListener`(fn)) | |
def onCreateContextMenu0[A](fn: => A) = | |
base.setOnCreateContextMenuListener(`fn0 to android.view.View$OnCreateContextMenuListener`(() => fn)) | |
def onCreateContextMenu[A](fn: (android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo) => A) = | |
base.setOnCreateContextMenuListener(`fn3 to android.view.View$OnCreateContextMenuListener`(fn)) | |
def onLongClick0(fn: => Boolean) = | |
base.setOnLongClickListener(`fn0 to android.view.View$OnLongClickListener`(() => fn)) | |
def onLongClick(fn: (android.view.View) => Boolean) = | |
base.setOnLongClickListener(`fn1 to android.view.View$OnLongClickListener`(fn)) | |
def onClick0[A](fn: => A) = | |
base.setOnClickListener(`fn0 to android.view.View$OnClickListener`(() => fn)) | |
def onClick[A](fn: (android.view.View) => A) = | |
base.setOnClickListener(`fn1 to android.view.View$OnClickListener`(fn)) | |
def onFocusChange0[A](fn: => A) = | |
base.setOnFocusChangeListener(`fn0 to android.view.View$OnFocusChangeListener`(() => fn)) | |
def onFocusChange[A](fn: (android.view.View, Boolean) => A) = | |
base.setOnFocusChangeListener(`fn2 to android.view.View$OnFocusChangeListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfViewPropertyAnimator(val base: android.view.ViewPropertyAnimator) extends AnyVal { | |
def update0[A](fn: => A) = | |
base.setUpdateListener(`fn0 to android.animation.ValueAnimator$AnimatorUpdateListener`(() => fn)) | |
def update[A](fn: (android.animation.ValueAnimator) => A) = | |
base.setUpdateListener(`fn1 to android.animation.ValueAnimator$AnimatorUpdateListener`(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 ExtensionOfMenuItem(val base: android.view.MenuItem) extends AnyVal { | |
def onMenuItemClick0(fn: => Boolean) = | |
base.setOnMenuItemClickListener(`fn0 to android.view.MenuItem$OnMenuItemClickListener`(() => fn)) | |
def onMenuItemClick(fn: (android.view.MenuItem) => Boolean) = | |
base.setOnMenuItemClickListener(`fn1 to android.view.MenuItem$OnMenuItemClickListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfActionProvider(val base: android.view.ActionProvider) extends AnyVal { | |
def visibility0[A](fn: => A) = | |
base.setVisibilityListener(`fn0 to android.view.ActionProvider$VisibilityListener`(() => fn)) | |
def visibility[A](fn: (Boolean) => A) = | |
base.setVisibilityListener(`fn1 to android.view.ActionProvider$VisibilityListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfLayoutInflater(val base: android.view.LayoutInflater) extends AnyVal { | |
def filter0(fn: => Boolean) = | |
base.setFilter(`fn0 to android.view.LayoutInflater$Filter`(() => fn)) | |
def filter(fn: (java.lang.Class[_]) => Boolean) = | |
base.setFilter(`fn1 to android.view.LayoutInflater$Filter`(fn)) | |
def factory0(fn: => android.view.View) = | |
base.setFactory(`fn0 to android.view.LayoutInflater$Factory`(() => fn)) | |
def factory(fn: (java.lang.String, android.content.Context, android.util.AttributeSet) => android.view.View) = | |
base.setFactory(`fn3 to android.view.LayoutInflater$Factory`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfViewStub(val base: android.view.ViewStub) extends AnyVal { | |
def onInflate0[A](fn: => A) = | |
base.setOnInflateListener(`fn0 to android.view.ViewStub$OnInflateListener`(() => fn)) | |
def onInflate[A](fn: (android.view.ViewStub, android.view.View) => A) = | |
base.setOnInflateListener(`fn2 to android.view.ViewStub$OnInflateListener`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfGLSurfaceView(val base: android.opengl.GLSurfaceView) extends AnyVal { | |
def eGLConfigChooser0(fn: => javax.microedition.khronos.egl.EGLConfig) = | |
base.setEGLConfigChooser(`fn0 to android.opengl.GLSurfaceView$EGLConfigChooser`(() => fn)) | |
def eGLConfigChooser(fn: (javax.microedition.khronos.egl.EGL10, javax.microedition.khronos.egl.EGLDisplay) => javax.microedition.khronos.egl.EGLConfig) = | |
base.setEGLConfigChooser(`fn2 to android.opengl.GLSurfaceView$EGLConfigChooser`(fn)) | |
def gLWrapper0(fn: => javax.microedition.khronos.opengles.GL) = | |
base.setGLWrapper(`fn0 to android.opengl.GLSurfaceView$GLWrapper`(() => fn)) | |
def gLWrapper(fn: (javax.microedition.khronos.opengles.GL) => javax.microedition.khronos.opengles.GL) = | |
base.setGLWrapper(`fn1 to android.opengl.GLSurfaceView$GLWrapper`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfLooper(val base: android.os.Looper) extends AnyVal { | |
def messageLogging0[A](fn: => A) = | |
base.setMessageLogging(`fn0 to android.util.Printer`(() => fn)) | |
def messageLogging[A](fn: (java.lang.String) => A) = | |
base.setMessageLogging(`fn1 to android.util.Printer`(fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfCancellationSignal(val base: android.os.CancellationSignal) extends AnyVal { | |
def onCancel[A](fn: => A) = | |
base.setOnCancelListener(`fn0 to android.os.CancellationSignal$OnCancelListener`(() => fn)) | |
def asScala = this | |
} | |
implicit class ExtensionOfElement(val base: android.sax.Element) extends AnyVal { | |
def endTextElement0[A](fn: => A) = | |
base.setEndTextElementListener(`fn0 to android.sax.EndTextElementListener`(() => fn)) | |
def endTextElement[A](fn: (java.lang.String) => A) = | |
base.setEndTextElementListener(`fn1 to android.sax.EndTextElementListener`(fn)) | |
def endElement[A](fn: => A) = | |
base.setEndElementListener(`fn0 to android.sax.EndElementListener`(() => fn)) | |
def startElement0[A](fn: => A) = | |
base.setStartElementListener(`fn0 to android.sax.StartElementListener`(() => fn)) | |
def startElement[A](fn: (org.xml.sax.Attributes) => A) = | |
base.setStartElementListener(`fn1 to android.sax.StartElementListener`(fn)) | |
def asScala = this | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment