The manager module

The manager module contains the PluginManager class which encapsulates the functionality of loading and managing a series of plugins. The PluginManager is also responsible for processing the speech rules and object filters for all the loaded plugins.

The PluginManager class

Inheritance diagram of pysiriproxy.plugins.manager.PluginManager

class pysiriproxy.plugins.manager.PluginManager(connectionManager, logger=None)[source]

The PluginManager is responsible for loading all of the available plugins as well as processing the object filters and speech rules for each of the loaded plugins.

ask(question, spoken=None)[source]

Command Siri to ask the user a question.

  • question – The question to ask
  • spoken – The text Siri will say
completeRequest(refId=None, resetContext=True)[source]

Complete a request to Siri.

  • refId – The reference ID
loadPlugins(directory)[source]

Load all of the plugins from the plugins directory.

  • directory – The plugins directory
makeView(views)[source]

Create a view and send it to the iPhone.

  • views – The list of views to create
processFilters(obj, direction)[source]

Process all the plugin filters for this object and data direction.

  • obj – The object
  • direction – The data direction
processSpeechRules(text)[source]

Process all the plugin speech rules for this recognized text.

  • text – The recognized text
resetContext()[source]

Reset the context.

say(text, spoken=None, prompt=False, refId=None)[source]

Command Siri to speak a piece of text.

  • text – The text that Siri will display
  • spoken – The text that Siri will speak
  • prompt – True to have Siri prompt for a response

Table Of Contents

Previous topic

The directions module

Next topic

The objectClasses module

This Page