Exemple #1
0
 /// <summary>
 /// Get whether or not Glean is allowed to record and upload data.
 ///
 /// Caution: the result is only correct if Glean is already initialized.
 /// </summary>
 /// <returns>`true` if Glean is allowed to record and upload data.</returns>
 bool GetUploadEnabled()
 {
     if (IsInitialized())
     {
         return(LibGleanFFI.glean_is_upload_enabled() != 0);
     }
     else
     {
         return(false);
     }
 }