Start a new topic

getMeta().getRead() no longer available?

I am refering to the document on

http://devcenter.kinvey.com/android/guides/security# 


The getRead() function is no longer available

ArrayList<String> readers = event.getMeta().getRead();


I am using kinvey android

kinvey-android-lib-2.9.1.jar

kinvey-java-2.9.1.jar


Please kindly advice


Thanks,

Mark Thien


Mark, just as a heads up:


This may not be working because you don't have the dependency loaded?


import com.kinvey.java.model.KinveyMetaData;


Without that being imported, you will probably run into issues.


Thanks,

Please, certainly that this import is automatically included by Android Studio IDE and we don't need to worry and I have checked and it's there.
it shows several function under getMeta() like getEntityCreationTime, getLastModifiedTime and etc.


 

Mark, 


I'm a bit confused about the question then?  You're saying that it's in the library... but it's missing from somewhere else?


Thanks,

ok below is the class:

import com.kinvey.java.model.KinveyMetaData;

public void getData() {

                ArrayList<String> readers = ud.getMeta().getRead();
                User myFriend; // set to a valid Kinvey User
                readers.add(myFriend.getId());
                ud.getMeta().setRead(readers);

}

and getRead() and setRead is in red since both function not exist

 

any clue?

 

anyone?

 

Login or Signup to post a comment