Speedify SDK for Android  10.7.0
Classes | Static Public Member Functions | List of all members
com.speedify.speedifysdk.LogGeneration Class Reference

Detailed Description

Helper class for generating a zip file of all logs, and sending it via a Share dialog.

Since
6.1

Classes

interface  ILogCompleteCallback
 If the Activity you pass to shareLogs implements this, then this callback will be called after logs are created. More...
 

Static Public Member Functions

static void cleanupOldJavalog (Context c)
 Removes old javalogs from the system. More...
 
static void generateLogs (Context context)
 Create a log zip without a share sheet, using the default 'Speedify.zip' name. More...
 
static void generateLogs (Context context, final String fileName)
 Create a log zip without a share sheet. More...
 
static void shareLogs (Activity activity)
 Create a log zip using default messaging. More...
 
static void shareLogs (final Activity activity, final String fileName, final String email, final String subject, final String body)
 Create a log zip using custom messaging. More...
 

Member Function Documentation

◆ cleanupOldJavalog()

static void com.speedify.speedifysdk.LogGeneration.cleanupOldJavalog ( Context  c)
static

Removes old javalogs from the system.

Automatically called on startup and during log creation.

Parameters
ccontext
Since
7.2.6

◆ generateLogs() [1/2]

static void com.speedify.speedifysdk.LogGeneration.generateLogs ( Context  context)
static

Create a log zip without a share sheet, using the default 'Speedify.zip' name.

To delete this zip, either use Java's File class, or call eraseAllLogFiles to erase this and all log files.

Parameters
contextcontext used for OS acess. Implement ILogCompleteCallback to be notified on completion.
Since
10.5

◆ generateLogs() [2/2]

static void com.speedify.speedifysdk.LogGeneration.generateLogs ( Context  context,
final String  fileName 
)
static

Create a log zip without a share sheet.

To delete this zip, either use Java's File class, or call eraseAllLogFiles to erase this and all log files.

Parameters
contextcontext used for OS acess. Implement ILogCompleteCallback to be notified on completion.
fileNamethe name of the zip file to create
Since
10.5

◆ shareLogs() [1/2]

static void com.speedify.speedifysdk.LogGeneration.shareLogs ( Activity  activity)
static

Create a log zip using default messaging.

To delete this zip, either use Java's File class, or call eraseAllLogFiles to erase this and all log files.

Parameters
activityactivity used to launch the share dialog. Implement ILogCompleteCallback to be notified on completion.
Since
6.1

◆ shareLogs() [2/2]

static void com.speedify.speedifysdk.LogGeneration.shareLogs ( final Activity  activity,
final String  fileName,
final String  email,
final String  subject,
final String  body 
)
static

Create a log zip using custom messaging.

To delete this zip, either use Java's File class, or call eraseAllLogFiles to erase this and all log files.

Parameters
activityactivity used to launch the share dialog. Implement ILogCompleteCallback to be notified on completion.
fileNamethe name of the zip file to create
emailemail address to send to (for email sharing)
subjectsubject string (for email sharing)
bodymain message used in email or instant message bodies
Since
6.1

The documentation for this class was generated from the following file: