onCreate

public Unit onCreate()

This method gets called upon creating the class, You can think about it like some sort of constructor. In this case it mainly does three things:

  1. Create a Timber Debug tree for logging possible errors

  2. Create a Notification channel to display Music as a Notification

  3. Read the settings (preferences) and apply them to the app