package com.shareable.beacon;

import android.os.Handler;

import com.facebook.react.bridge.ReactApplicationContext;

import org.altbeacon.beacon.BeaconParser;
import org.altbeacon.beacon.Identifier;

public abstract class Beacons extends ReactApplicationContext {
    // modified the layout of Altbeacon
    static final String ALT_BEACON  = "m:2-3=beac,i:4-5,i:6-23,p:24-24,d:25-25";
    // unique identifier for ocra beacon
    static final Identifier MY_MATCHING_IDENTIFIER  = Identifier.fromInt(0x8b9c);

    BeaconParser cusParser;

    Beacons(ReactApplicationContext context) {
        super(context);
        cusParser = new BeaconParser().setBeaconLayout(ALT_BEACON);
    }

    public abstract void onStart();
    public abstract void onStart(String message, final BeaconStates callback);

    public abstract void onStop();
}
