Shortcut for getApplicationContext()
Shortcut for getApplicationContext()
Shortcut for getApplicationInfo()
Shortcut for getApplicationInfo()
Shortcut for getAssets()
Shortcut for getAssets()
Shortcut for getCacheDir()
Shortcut for getCacheDir()
Shortcut for getClassLoader()
Shortcut for getClassLoader()
Shortcut for getContentResolver()
Shortcut for getContentResolver()
Shortcut for getExternalCacheDir()
Shortcut for getExternalCacheDir()
Shortcut for getFilesDir()
Shortcut for getFilesDir()
Shortcut for getMainLooper()
Shortcut for getMainLooper()
Shortcut for getObbDir()
Shortcut for getObbDir()
Shortcut for getPackageCodePath()
Shortcut for getPackageCodePath()
Shortcut for getPackageManager()
Shortcut for getPackageManager()
Shortcut for getPackageName()
Shortcut for getPackageName()
Shortcut for getPackageResourcePath()
Shortcut for getPackageResourcePath()
Shortcut for getResources()
Shortcut for getResources()
Shortcut for setTheme(int)
Shortcut for setTheme(int)
Shortcut for getTheme()
Shortcut for getTheme()
Shortcut for setTheme(int)
Shortcut for setTheme(int)
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
Shortcut for setWallpaper(java.io.InputStream)
Shortcut for setWallpaper(java.io.InputStream)
(Since version )
Shortcut for setWallpaper(android.graphics.Bitmap)
Shortcut for setWallpaper(android.graphics.Bitmap)
(Since version )
Shortcut for getWallpaper()
Shortcut for getWallpaper()
(Since version )
Shortcut for getWallpaperDesiredMinimumHeight()
Shortcut for getWallpaperDesiredMinimumHeight()
(Since version )
Shortcut for getWallpaperDesiredMinimumWidth()
Shortcut for getWallpaperDesiredMinimumWidth()
(Since version )
Shortcut for setWallpaper(java.io.InputStream)
Shortcut for setWallpaper(java.io.InputStream)
(Since version )
Shortcut for setWallpaper(android.graphics.Bitmap)
Shortcut for setWallpaper(android.graphics.Bitmap)
(Since version )
Enriched trait for the class android.app.Activity. To enable Scaloid, inherit this trait instead of the class Activity.
SActivity has shortcut methods for each lifecycle stages. These methods shorten the method overriding, which is very frequent for activity classes.
For example, instead of this:
The equivalent is:
onCreate { // do something for onCreate }
or
If the
Bundle
is needed in theonCreate
call to restore saved state, a function can be supplied which acceptsOption[Bundle]
:In contrast of method overriding, this shortcut can be called multiple times from different places of your code.