OlmManager  class 
 
    Methods 
    
        
  decryptToDeviceEvent (ToDeviceEvent event → Future <ToDeviceEvent   
   
  
 
  
  
 
        
  dispose ()
    → Future <void >  
    
  
 
  
  
 
        
  encryptToDeviceMessage (List <DeviceKeys  deviceKeys , String type , Map <String dynamic > payload → Future <Map <String Map <String Map <String dynamic >     
   
  
 
  
  
 
        
  encryptToDeviceMessagePayload (DeviceKeys device , String type , Map <String dynamic > payload , {bool getFromDb  = true → Future <Map <String dynamic >   
   
  
 
  Encryptes a ToDeviceMessage for the given device with an existing
olm session.
Throws NoOlmSessionFoundException if there is no olm session with this
device and none could be created.
  
 
        
  getOlmSessions (String senderKey , {bool getFromDb  = true → Future <List <OlmSession    
   
  
 
  
  
 
        
  getOlmSessionsForDevicesFromDatabase (List <String  senderKeys → Future <void >  
   
  
 
  
  
 
        
  getOlmSessionsFromDatabase (String senderKey → Future <List <OlmSession    
   
  
 
  
  
 
        
  handleDeviceOneTimeKeysCount (Map <String int  ?countJson , List <String  ?unusedFallbackKeyTypes → Future <void >  
   
  
 
  
  
 
        
  handleToDeviceEvent (ToDeviceEvent event → Future <void >  
   
  
 
  
  
 
        
  init ({String ?olmAccount , required  String ?deviceId , String ?pickleKey , String ?dehydratedDeviceAlgorithm → Future <void >  
    
  
 
  
  
 
        
  noSuchMethod (Invocation invocation → dynamic 
   
  
 
  Invoked when a nonexistent method or property is accessed.
  inherited 
 
        
  pickleOlmAccountWithKey (String key → String ? 
   
  
 
  
  
 
        
  restoreOlmSession (String userId , String senderKey → Future <void >  
   
  
 
  
  
 
        
  signJson (Map <String Object ? payload → Map <String Object ?  
   
  
 
  Adds a signature to this json from this olm account and returns the signed
json.
  
 
        
  signString (String s → String  
   
  
 
  
  
 
        
  startOutgoingOlmSessions (List <DeviceKeys  deviceKeys → Future <void >  
   
  
 
  
  
 
        
  storeOlmSession (OlmSession session → Future <void >  
   
  
 
  
  
 
        
  toString ()
    → String  
    
  
 
  A string representation of this object.
  inherited 
 
        
  uploadKeys ({bool uploadDeviceKeys  = false , int ?oldKeyCount  = 0 , bool updateDatabase  = true , bool ?unusedFallbackKey  = false , String ?dehydratedDeviceAlgorithm , String ?dehydratedDevicePickleKey , int retry  = 1 → Future <bool   
    
  
 
  Generates new one time keys, signs everything and upload it to the server.
If retry is > 0, the request will be retried with new OTKs on upload failure.