package com.avg.zaap.crashlibrary.core;

import android.content.Context;
import android.content.Intent;

/**
 * This interface defines the common behavior for the {@link ServiceConnectionHelper}.
 * <p>
 * Created by marek.osvald on 17. 5. 2016.
 */
public interface IServiceConnectionHelperFactory {

    /**
     * Returns an instance of Android intent for given android context and Activity class.
     *
     * @param context Android application context
     * @param clazz   instance of Activity class
     * @return instance of Android intent
     */
    Intent getIntent(Context context, Class clazz);

    /**
     * Returns an instance of Thread class.
     *
     * @param runnable runnable to initialize the Thread with
     * @return an instance of Thread class
     */
    Thread getThread(Runnable runnable);
}
