Speedify SDK for Android  15.2.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...
 
class  LaunchShareSheet
 Launches the share sheet with the log file. More...
 
interface  LogAction
 Interface for a log action to be taken after log generation. More...
 
class  SubmitToDirectory
 Submits longs to the directory server using the sendLogReport. 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...
 
static void create (Context context, final List< LogAction > actions)
 Create a log zip with a list of actions to take after log generation. More...
 
static void create (Context context, final ILogCompleteCallback callback, final List< LogAction > actions)
 Create a log zip with a list of actions to take after log generation. More...
 
static void create (Context context, final ILogCompleteCallback callback, final String fileName, final List< LogAction > actions)
 Create a log zip with a list of actions to take after log generation. 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

◆ create() [1/3]

static void com.speedify.speedifysdk.LogGeneration.create ( Context  context,
final List< LogAction actions 
)
static

Create a log zip with a list of actions to take after log generation.

Parameters
contextcontext used for OS acess. Implement ILogCompleteCallback to be notified on completion.
actionslist of actions to take after log generation
Since
14.8.6

◆ create() [2/3]

static void com.speedify.speedifysdk.LogGeneration.create ( Context  context,
final ILogCompleteCallback  callback,
final List< LogAction actions 
)
static

Create a log zip with a list of actions to take after log generation.

Parameters
contextcontext used for OS acess.
callbackobject to be notified on completion
actionslist of actions to take after log generation
Since
14.8.6

◆ create() [3/3]

static void com.speedify.speedifysdk.LogGeneration.create ( Context  context,
final ILogCompleteCallback  callback,
final String  fileName,
final List< LogAction actions 
)
static

Create a log zip with a list of actions to take after log generation.

Parameters
contextcontext used for OS acess.
callbackobject to be notified on completion
fileNamethe name of the zip file to create. If required, you must request write permission to this path prior to calling.
actionslist of actions to take after log generation
Since
14.8.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
Deprecated:
as of 14.8.6, use create(context, Arrays.asList()) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, callback, Arrays.asList()) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, context, fileName, Arrays.asList()) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, callback, fileName, Arrays.asList()) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, Arrays.asList(new LaunchShareSheet())) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, callback, Arrays.asList(new LaunchShareSheet())) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, context, fileName, Arrays.asList(LaunchShareSheet(email,subject,body))) instead

◆ 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
Deprecated:
as of 14.8.6, use create(context, callback, fileName, Arrays.asList(LaunchShareSheet(email,subject,body))) instead

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