Get variables stored in ionic using localStorage.setItem in java file(in plugin)

I’m using ionic to build my application and used localStorage to get and set variables. I need to access those variables in mu plugin which is in java Is that possible to to do.

following code is in javascript

var LOCAL_TOKEN_KEY = 'yourTokenKey';
var token="123";
window.localStorage.setItem(LOCAL_TOKEN_KEY, token);

I want to access that variable in my plugin which is written in java.

thanks in advance