Skip to content

Commit 93586d3

Browse files
feat: feature impl
1 parent a0cbc58 commit 93586d3

3 files changed

Lines changed: 486 additions & 474 deletions

File tree

sdk/src/main/java/ly/count/android/sdk/CountlyConfig.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,19 @@ public synchronized CountlyConfig setLoggingEnabled(boolean enabled) {
376376
return this;
377377
}
378378

379+
/**
380+
* Set a custom metric provider to override default device metrics.
381+
* Only the methods you override will replace the SDK defaults.
382+
* Methods that return null will fall back to the SDK's built-in values.
383+
*
384+
* @param metricProvider Your custom MetricProvider implementation
385+
* @return Returns the same config object for convenient linking
386+
*/
387+
public synchronized CountlyConfig setMetricProvider(MetricProvider metricProvider) {
388+
this.metricProviderOverride = metricProvider;
389+
return this;
390+
}
391+
379392
/**
380393
* Call to enable uncaught crash reporting
381394
*

0 commit comments

Comments
 (0)