Skip to content

SubscribeForNotifications() usage and documentation #2634

Answered by LaPeste
jrlaff asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jrlaff,

Just to add a little more info on the subject.
About your first question you can find an answer in the remarks of SubscribeForNotifications(NotificationCallbackDelegate). Just a little after the sentence you quoted. It says:

If an error occurs the callback will be invoked with null for the sender parameter and a non-null error.

So there's no conflicting description. In NotificationCallbackDelegate<T>, changes is always null the first time you receive the notification. Afterwards it contains the changes that happened. At the same time, error is null if no errors have occurred, otherwise it holds info about the exception. So it would be like the following:

  1. First notification, c…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jrlaff
Comment options

@A9G-Data-Droid
Comment options

@peppy
Comment options

@A9G-Data-Droid
Comment options

Answer selected by jrlaff
Comment options

You must be logged in to vote
6 replies
@peppy
Comment options

@jrlaff
Comment options

@nirinchev
Comment options

@peppy
Comment options

@A9G-Data-Droid
Comment options

Comment options

You must be logged in to vote
1 reply
@nirinchev
Comment options

Comment options

You must be logged in to vote
2 replies
@nirinchev
Comment options

@peppy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants