This source file includes following definitions.
- getNetworkCountryIso
- create
package org.chromium.content.common;
import android.content.Context;
import android.telephony.TelephonyManager;
import org.chromium.base.CalledByNative;
public class DeviceTelephonyInfo {
private TelephonyManager mTelManager;
private DeviceTelephonyInfo(Context context) {
Context appContext = context.getApplicationContext();
mTelManager = (TelephonyManager) appContext.getSystemService(Context.TELEPHONY_SERVICE);
}
@CalledByNative
public String getNetworkCountryIso() {
return mTelManager.getNetworkCountryIso();
}
@CalledByNative
public static DeviceTelephonyInfo create(Context context) {
return new DeviceTelephonyInfo(context);
}
}