Speedify SDK for Android  14.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, ILogCompleteCallback callback)
 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 generateLogs (Context context, final ILogCompleteCallback callback, 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 (Activity activity, final ILogCompleteCallback callback)
 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...
 
static void shareLogs (final Activity activity, final ILogCompleteCallback callback, 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/4]

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/4]

static void com.speedify.speedifysdk.LogGeneration.generateLogs ( Context  context,
ILogCompleteCallback  callback 
)
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.
callbackobject to be notified on completion
Since
11.2

◆ generateLogs() [3/4]

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. As of 11.0, this may be an absolute path. If required, you must request write permission to this path prior to calling.
Since
10.5

◆ generateLogs() [4/4]

static void com.speedify.speedifysdk.LogGeneration.generateLogs ( Context  context,
final ILogCompleteCallback  callback,
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.
callbackobject to be notified on completion
fileNamethe name of the zip file to create. As of 11.0, this may be an absolute path. If required, you must request write permission to this path prior to calling.
Since
11.2

◆ shareLogs() [1/4]

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/4]

static void com.speedify.speedifysdk.LogGeneration.shareLogs ( Activity  activity,
final ILogCompleteCallback  callback 
)
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.
callbackobject to be notified on completion
Since
11.2

◆ shareLogs() [3/4]

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. As of 11.0, this may be an absolute path. If required, you must request write permission to this path prior to calling.
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

◆ shareLogs() [4/4]

static void com.speedify.speedifysdk.LogGeneration.shareLogs ( final Activity  activity,
final ILogCompleteCallback  callback,
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.
callbackobject to be notified on completion
fileNamethe name of the zip file to create. As of 11.0, this may be an absolute path. If required, you must request write permission to this path prior to calling.
emailemail address to send to (for email sharing)
subjectsubject string (for email sharing)
bodymain message used in email or instant message bodies
Since
11.2

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