package com.mobify.astro;

import android.support.annotation.NonNull;
import android.view.View;

import com.mobify.astro.messaging.EventRegistrar;
import com.mobify.astro.messaging.MessageSender;

import org.json.JSONObject;

public class TestPluginWithInitOptions extends AstroPlugin {
    private View view;

    public JSONObject options;

    public TestPluginWithInitOptions(@NonNull AstroActivity activity, @NonNull PluginResolver pluginResolver,
                                     @NonNull EventRegistrar eventRegistrar,
                                     @NonNull MessageSender messageSender, JSONObject options) {
        super(activity, pluginResolver, eventRegistrar, messageSender);
        view = new View(activity.getApplicationContext());
        this.options = options;
    }

    @Override
    public View getView() {
        return view;
    }
}
