From f62e9525140adad2c2e9cd25cc8870925e23df47 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 27 Oct 2024 15:48:21 +0100 Subject: [PATCH] add common usecase example --- docs/2_2_1_fingerprinting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/2_2_1_fingerprinting.md b/docs/2_2_1_fingerprinting.md index 1cbfe7b..a961944 100644 --- a/docs/2_2_1_fingerprinting.md +++ b/docs/2_2_1_fingerprinting.md @@ -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