David
10/27/2018, 6:59 PMDavid
10/27/2018, 7:04 PMSam
10/27/2018, 7:05 PMSam
10/27/2018, 7:05 PMSam
10/27/2018, 7:05 PMSam
10/27/2018, 7:07 PMSam
10/27/2018, 7:07 PMDavid
10/27/2018, 7:08 PMDavid
10/27/2018, 7:09 PM@Module
open class SyncModule {
@Module
companion object {
/**
* Provide access to the notification manager.
*
* @return the notification manager.
*/
@Provides
@JvmStatic fun providesNotificationManager(context: Context): NotificationManager {
return context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
}
...
..snippet from one of my Kotlin modulesSam
10/27/2018, 7:10 PMSam
10/27/2018, 7:11 PMSam
10/27/2018, 7:11 PMDavid
10/27/2018, 7:11 PMSam
10/27/2018, 7:12 PMSam
10/27/2018, 7:12 PMSam
10/27/2018, 7:12 PMDavid
10/27/2018, 7:14 PMDavid
10/27/2018, 7:15 PMSam
10/27/2018, 7:15 PM