@TargetApi(24)
public void getEarfcn(WritableMap mapCellIdentity, CellIdentityLte cellIdentity) {
if (android.os.Build.VERSION.SDK_INT >= 24){
// Do something for nougat and above versions
mapCellIdentity.putInt("earfcn", cellIdentity.getEarfcn());
} else{
// do something for phones running an SDK before lollipop
mapCellIdentity.putInt("earfcn", 0);
}
}
TelephonyModule.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:react-native-telephony
作者:
评论列表
文章目录