[英]Can not get contacts using qml and v-play
I cannot get android contacts using v-play nativeUtils.我无法使用 v-play nativeUtils 获取 android 联系人。 Is there something wrong with this code?这段代码有什么问题吗?
App {
AppListView {
anchors.fill: parent
model:nativeUtils.getContacts()
delegate:SimpleRow {
text: modelData.name
detailText: modelData.phoneNumber
}
}
}
There is a new property, called contacts
that you can use for displaying contacts.有一个新属性,称为contacts
,可用于显示联系人。 Have a look at the documentation and the sample here: https://v-play.net/doc/nativeutils/#contacts-prop在此处查看文档和示例: https : //v-play.net/doc/nativeutils/#contacts-prop
Best, Alex最好的,亚历克斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.