|
JubeatPlus 3.9.11
|
Reads and writes the shared sticker set. More...
#include <StickerUtility.h>


Class Methods | |
| (void) | + cleanStickerList |
| Forgets every sticker's display name. | |
| (BOOL) | + checkExistSticker: |
| Reports whether a sticker is present. | |
| (void) | + saveSticker:displayName:data: |
| Writes a sticker's image into the app group and records its display name. | |
Reads and writes the shared sticker set.
The class has no ivars and no instance methods.
| + (BOOL) checkExistSticker: | (nullable NSString *) | name |
Reports whether a sticker is present.
This does not do what its name says. The body never reads name: it checks only that the app group's container directory itself exists, so it answers the same value for every argument and for a sticker that was never saved. See TYPES_PENDING.md.
| name | The sticker's file name. Ignored. |
| + (void) cleanStickerList |
Forgets every sticker's display name.
Removes the whole name dictionary from the group's defaults. Note it does not call -synchronize, where +saveSticker:displayName:data: does, and it does not delete the sticker files — so the images survive with no names attached.
| + (void) saveSticker: | (nullable NSString *) | fileName | |
| displayName: | (nullable NSString *) | displayName | |
| data: | (nullable NSData *) | data |
Writes a sticker's image into the app group and records its display name.
The name is only recorded when the file write succeeds, so a failed write leaves the defaults untouched rather than half-updated.
| fileName | The file to write, relative to the group container. Also the dictionary key. |
| displayName | The name to show for it. |
| data | The image bytes. |