![Citizen CL-E300 Programming Manual Download Page 16](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002016.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
16
2.2.2 setContext method
Syntax
int setContext( Context context )
Parameters
値
[IN/OUT]
意味
設定可能範囲
context
[IN]
Context
(android.content.Context)
Context
:
Description
This method is used to the USB connection and the search printer. Specify the context.
Must be executed this method before the
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 "
" for the error
codes.
Example
printer.setContext (this);
printer.setContext (getApplicationContext());