Skip to content

Commit

Permalink
add common usecase example
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 27, 2024
1 parent 635d23c commit f62e952
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/2_2_1_fingerprinting.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ you can match the fingerprint on the list of classes:
val match = showAdsFingerprint.match(context, adsLoaderClass) ?: throw PatchException("No match found")
}
```

Another common usecase is to use a fingerprint to reduce the search space of a method to a single class.

```kt
execute {
// Match showAdsFingerprint in the class of the ads loader found by adsLoaderClassFingerprint.
val match by showAdsFingerprint.match(adsLoaderClassFingerprint.match!!.classDef)
}
```

- Match a **single method**, to extract certain information about it

Expand Down

0 comments on commit f62e952

Please sign in to comment.