mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-08 08:04:25 +02:00
feat: add findClass method with className
This commit is contained in:
parent
00c85b5d75
commit
4087f49863
@ -13,6 +13,12 @@ class Cache(
|
||||
// if the class proxy already exists in the cached proxy list below
|
||||
internal val classProxy = mutableSetOf<ClassProxy>()
|
||||
|
||||
/**
|
||||
* Find a class by a given class name
|
||||
* @return A proxy for the first class that matches the class name
|
||||
*/
|
||||
fun findClass(className: String) = findClass { it.type.contains(className) }
|
||||
|
||||
/**
|
||||
* Find a class by a given predicate
|
||||
* @return A proxy for the first class that matches the predicate
|
||||
|
Loading…
x
Reference in New Issue
Block a user