2.2.2 setContext method
Syntax
int setContext( Context context )
Parameters
値
context
Description
This method is used to the USB connection and the search printer. Specify the context.
Must be executed this method before the
searchLabelPrinter
If you want to connect with other interfaces, you do not need this method.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See
codes.
Example
printer.setContext (this);
printer.setContext (getApplicationContext());
[IN/OUT] 意味
[IN]
Context
(android.content.Context)
method.
CITIZEN Android Label Print SDK — Programming Manual
設定可能範囲
Context :
connect method
on the USB connection and the
16
"2.1 Return
value" for the error