How to pass data to plugin register function?

i have a plugin register function with beforeDraw, and I need to use some data from outside, how to pass this data inside the plugin function?

ok i found the answer, just bind(somedata)

how did u pass the data can u detail it

what exactly do you want?

i want to send the data from cordova plugin (which is an android native application converted to plugin in ionic) to ionic