TelephonyModule.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:react-native-telephony 作者:
@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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号