The Reader API provides functions to reader.
Required Header
#include <smartcard.h>
Related Features
This API is related with the following features:
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Typedef Documentation
Enumeration Type Documentation
Enumerations for Smartcard reader event type.
- Since :
- 3.0
- Enumerator:
SMARTCARD_READER_EVENT_TYPE_IO_ERROR |
This event notifies the application that I/O error occurs on smartcard reader
|
SMARTCARD_READER_EVENT_TYPE_INSERTED |
This event notifies the application that smartcard reader is inserted
|
SMARTCARD_READER_EVENT_TYPE_REMOVED |
This event notifies the application that smartcard reader is removed
|
Function Documentation
Closes all the sessions opened on the given reader.
All the channels opened by all these sessions will be closed.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/secureelement
- Parameters:
-
[in] | reader | Handle to the reader |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_get_readers()
Returns the name of the given reader.
- Since :
- 2.3.1
- Parameters:
-
[in] | reader | Handle to the reader |
[out] | reader_name | The name of reader |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_get_readers()
Checks if a Secure Element is present in the given reader.
- Since :
- 2.3.1
- Parameters:
-
[in] | reader | Handle to the reader |
[out] | is_present | True or false depending whether a secure element is present in the reader - undefined when an error is returned |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_get_readers()
Connects to a Secure Element in the given reader.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/secureelement
- Parameters:
-
[in] | reader | Handle to the reader |
[out] | session | Handle to the session created for the given reader |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_get_readers()
Sets a callback function for receiving reader event.
- Since :
- 3.0
- Parameters:
-
[in] | cb | The reader event callback |
[in] | user_data | The user data |
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_reader_unset_event_cb()
Unsets the reader event callback function.
- Since :
- 3.0
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
- See also:
- smartcard_reader_set_event_cb()