Can not get contacts using qml and v-play

73 views Asked by At

I cannot get android contacts using v-play nativeUtils. Is there something wrong with this code?

 App {
   AppListView {
     anchors.fill: parent
     model:nativeUtils.getContacts()
     delegate:SimpleRow {
       text: modelData.name
       detailText: modelData.phoneNumber
     }
  }
}
1

There are 1 answers

0
alexleutgoeb On

There is a new property, called contacts that you can use for displaying contacts. Have a look at the documentation and the sample here: https://v-play.net/doc/nativeutils/#contacts-prop

Best, Alex