Development Team/Low-level Activity API: Difference between revisions

Bert (talk | contribs)
m Telepathy: connection availability
Bert (talk | contribs)
m Startup: mention "unshared" startup
Line 471: Line 471:
== Startup ==
== Startup ==


On startup, an activity needs to check all the currently available connections if there is already a "room" for it. If so, it needs to be joined (see [[#Joining|below]]). The GetActivity method checks for the room given an activity_id:
On startup, an activity needs to check all the currently available connections if there is already a "room" for it. The GetActivity method checks for the room given an activity_id:


  for connection in connections:
  for connection in connections:
Line 483: Line 483:
  METHOD SetProperties(room:u, properties:a{sv}) => ()
  METHOD SetProperties(room:u, properties:a{sv}) => ()
  SIGNAL ActivityPropertiesChanged(room:u, properties:a{sv})
  SIGNAL ActivityPropertiesChanged(room:u, properties:a{sv})
If a room is found, the activity needs to join it immediately (see [[#Joining|below]]). Otherwise, a normal "unshared" activity startup should commence.


== Joining ==
== Joining ==