Can Android Studio’s Kotlin declare a function in an external class to be used multiple times but need a context?
I have the following function pinAppWidget which I am using in MainActivity but I would need to be able to use it also in ConfigurableWidgetConfigureActivity to not have a duplicate of the function I would like to create a class…