public interface ReportSenderFactory
ReportSender
instance.
Implementations must have a no argument constructor.
Each configured ReportSenderFactory is created within the SenderService
and is used to construct and configure a single ReportSender
.
Created by William on 4-JAN-2016.
Modifier and Type | Method and Description |
---|---|
ReportSender |
create(Context context,
CoreConfiguration config) |
default boolean |
enabled(CoreConfiguration config)
controls if this instance is active
|
@NonNull ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config)
context
- a context.config
- Configuration to use when sending reports.default boolean enabled(@NonNull CoreConfiguration config)
config
- the current config