SystemInfo/DeviceInfo Service

SystemInfo Service (iOS) & DeviceInfo Service (Android)

Overview

The SystemInfo Service (iOS) / DeviceInfo Service (Android) provides a set of APIs for retrieving device information, such as carrier name, device name, locale, and more.

Usage

The following code snippet shows how to retrieve the active locale.
Android
iOS(AEP 3.x)
1
import com.adobe.marketing.mobile.services.*;
2
3
DeviceInforming deviceInfoService = ServiceProvider.getInstance().getDeviceInfoService();
4
String localName = deviceInfoService.getLocaleString();
Copied!
1
import AEPServices
2
3
// Add a computed variable to your type or use it directly in the function where required
4
private var systemInfoService: SystemInfoService {
5
return ServiceProvider.shared.systemInfoService
6
}
7
8
// ...
9
let locale = systemInfoService.getActiveLocaleName()
Copied!
Last modified 6d ago