package com.avg.zaap.crashlibrary.provider;

import android.support.annotation.NonNull;

/**
 * This interface denotes the common behavior for the synchronous provider.
 * Implementation of this interface needs to have constructor with Context parameter.
 * <p>
 * Created by marek.osvald on 8.4.2016.
 */
public interface ICrashSyncProvider {

    /**
     * Provides the data from the synchronous blocking crash provider.
     *
     * @param directory destination directory to create the crash provision in
     * @return provider result file path
     * @throws CrashProviderException provided that provision has failed
     */
    String provideData(@NonNull final String directory) throws CrashProviderException;

}
