/** * Build the session * * @return the built session */ public MXSession build() { return new MXSession(mHsConfig, mDataHandler, mContext, mPushServerUrl, mEnableFileEncryption, mUseLegacyCryptoStore, mMetricsListener); } }
session = new MXSession(hsConfig, dh, context); session.setSyncDelay(syncDelay * 1000); session.setSyncTimeout(syncTimeout * 60 * 1000);