-
-
Save samyak-jain/aa74eae3e41b384c2a25ded91d4e55af to your computer and use it in GitHub Desktop.
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
class MainActivity : AppCompatActivity() { | |
companion object { | |
private val LOG_TAG = MainActivity::class.java.simpleName | |
private const val APP_ID = "" | |
private const val CHANNEL = "" | |
private const val TOKEN = "" | |
private const val PERMISSION_CODE = 22 | |
} | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
if (permissionsGranted()) { | |
initializeApplication() | |
} else { | |
requestPermissions() | |
} | |
} | |
private fun permissionsGranted(): Boolean { | |
} | |
private fun requestPermissions() { | |
} | |
override fun onRequestPermissionsResult( | |
requestCode: Int, | |
permissions: Array<out String>, | |
grantResults: IntArray | |
) { | |
} | |
private fun initializeApplication() { | |
} | |
override fun onDestroy() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment