LoggingCodeGeneratorCallback

public class LoggingCodeGeneratorCallback extends Object
implements CodeGenerationRequest.CodeGeneratorCallback

Simple generator callback that logs the generated code to device Log and a Toast.

Field Summary

protected final Context mContext
protected final String mTag

Public Constructor Summary

LoggingCodeGeneratorCallback(Context context, String loggingTag)

Public Method Summary

void
onFinishCodeGeneration(String generatedCode)
Called when finished generating code.

Inherited Method Summary

Fields

protected final Context mContext

protected final String mTag

Public Constructors

public LoggingCodeGeneratorCallback (Context context, String loggingTag)

Parameters
context
loggingTag

Public Methods

public void onFinishCodeGeneration (String generatedCode)

Called when finished generating code.

Parameters
generatedCode The string containing all of the generated code.