--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add a callback for Jabber::Presence updates
- !ruby/struct:SM::Flow::P 
  body: This will be called for <tt>&lt;presence/&gt;</tt> stanzas for known RosterItems. Unknown JIDs may still pass and can be caught via Jabber::Stream#add_presence_callback.
- !ruby/struct:SM::Flow::P 
  body: "The block receives three objects:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the Jabber::Roster::Helper::RosterItem
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the old Jabber::Presence (or nil)
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the new Jabber::Presence (or nil)
  type: :BULLET
full_name: Jabber::Roster::Helper#add_presence_callback
is_singleton: false
name: add_presence_callback
params: (prio = 0, ref = nil, &block)
visibility: public
