17 lines
425 B
Kotlin
17 lines
425 B
Kotlin
|
package jp.juggler.subwaytooter
|
||
|
|
||
|
import android.content.Context
|
||
|
import android.content.SharedPreferences
|
||
|
|
||
|
object PrefDevice {
|
||
|
|
||
|
private const val file_name = "device"
|
||
|
|
||
|
internal const val KEY_DEVICE_TOKEN = "device_token"
|
||
|
internal const val KEY_INSTALL_ID = "install_id"
|
||
|
|
||
|
fun prefDevice(context : Context) : SharedPreferences {
|
||
|
return context.getSharedPreferences(file_name, Context.MODE_PRIVATE)
|
||
|
}
|
||
|
}
|