JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StickerUtility Class Reference

Reads and writes the shared sticker set. More...

#include <StickerUtility.h>

Inheritance diagram for StickerUtility:
Collaboration diagram for StickerUtility:

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.

Detailed Description

Reads and writes the shared sticker set.

The class has no ivars and no instance methods.

Method Documentation

◆ checkExistSticker:

+ (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.

Parameters
nameThe sticker's file name. Ignored.
Returns
Whether the app group's container exists.
Ghidra address:
0xdc690

◆ cleanStickerList

+ (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.

Ghidra address:
0xdc634
Ghidra address:
0xdc634

◆ saveSticker:displayName:data:

+ (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.

Parameters
fileNameThe file to write, relative to the group container. Also the dictionary key.
displayNameThe name to show for it.
dataThe image bytes.
Ghidra address:
0xdc73c

The documentation for this class was generated from the following files: