EBookContacts.ContactPhoto¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| type | EBookContacts.ContactPhotoType | r/w | 
Methods¶
| class | new() | 
| copy() | |
| free() | |
| get_inlined() | |
| get_mime_type() | |
| get_uri() | |
| set_inlined(data) | |
| set_mime_type(mime_type) | |
| set_uri(uri) | 
Details¶
- 
class EBookContacts.ContactPhoto¶
- 
classmethod new()¶
- Returns: - A new - EBookContacts.ContactPhotostruct.- Return type: - EBookContacts.ContactPhoto- Creates a new - EBookContacts.ContactPhotostruct.- New in version 3.2. 
 - 
copy()¶
- Returns: - A new - EBookContacts.ContactPhotostruct identical to self.- Return type: - EBookContacts.ContactPhoto- Creates a copy of self. - New in version 3.8. 
 - 
free()¶
- Frees the self struct and its contents. 
 - 
get_inlined()¶
- Returns: - the - EBookContacts.inlinedimage in the- EBookContacts.ContactPhoto, or- Noneif it has not been set.- Return type: - bytesor- None- Gets the self’s data. - New in version 3.2. 
 - 
get_mime_type()¶
- Returns: - the MIME type of the image, or - Noneif it has not been set.- Return type: - stror- None- Gets the self’s mime type. - New in version 3.2. 
 - 
get_uri()¶
- Returns: - the URI of the image, or - Noneif it has not been set- Return type: - stror- None- Gets the self’s URI. - New in version 3.2. 
 - 
set_inlined(data)¶
- Parameters: - data ( - bytes) – the- EBookContacts.inlinedimage data- Sets the self’s - EBookContacts.inlineddata.- New in version 3.2. 
 
- 
classmethod