New creating Plugins


Hello Community
I’m pretty new stating creating plugins.

I tried different ways to translate this code in android to nativescript using typescript

private void startlogin() {
	Intent intent = new Intent(MainActivity.this,;

	intent.putExtra(AuthConstants.KEY_NEXT_ACTIVITY, MainActivity.class);

I’ll appreciate some help to understant how can I translate this code to create the plugin that I need for my app.



If you shared what you’ve attempted, we might be able to provide proper guidance.

Here are two articles you may find useful. Also - other nativescript plugins, even the tns-core-modules themselves are great sources to learn how to use Java classes in javascript.