c# - How Can i Read a unread SMS on uwp? -
i need help. have code:
windows.applicationmodel.chat.chatmessagestore store = await windows.applicationmodel.chat.chatmessagemanager.requeststoreasync(); var msglist = store.getmessagereader(); ireadonlylist<windows.applicationmodel.chat.chatmessage> = await msglist.readbatchasync()
and read sms this
foreach (var item in a) { system.diagnostics.debug.writeline(item.body); }
how can read unread sms? mean read new sms , afterwards change status 'read'.
question uwp win 10..
take @ chatmessage class
isread property read-only. mean can check message readed. can't set message been readed or unreaded
foreach (windows.applicationmodel.chat.chatmessage item in a) { if (item.isread) system.diagnostics.debug.writeline(item.body); }
Comments
Post a Comment