/// <summary> /// Initialize SDK with the specified configuration. The configuration is persisted so that /// background push, background real time location reporting or opening application from any /// activity works even if you integrated this call at only one place such as a launcher activity. </summary> /// <param name="configuration"> full configuration. </param> //JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: public void init(final EngagementConfiguration configuration) public virtual void init(EngagementConfiguration configuration) { sendEngagementCommand(() => { try { mEngagementService.init(configuration); mEngagementConfiguration = configuration; } catch (Exception e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }); }
/// <summary> /// Call this method if a runtime permission needed for the SDK has just been granted by the user /// so that the SDK can enable the features associated to the permissions. /// </summary> public virtual void refreshPermissions() { if (mEngagementConfiguration != null) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final EngagementConfiguration configuration = mEngagementConfiguration; EngagementConfiguration configuration = mEngagementConfiguration; sendEngagementCommand(() => { try { mEngagementService.init(configuration); } catch (Exception e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }); } }