DECLARE_DELEGATE_OneParam inside function

Inside AndroidJNI.cpp under Engine\Source\Runtime\Launch\Private\Android, in JNI_OnLoad function, we have:

DECLARE_DELEGATE_OneParam(FAndroidLaunchURLDelegate, const FString&);
extern CORE_API FAndroidLaunchURLDelegate OnAndroidLaunchURL;
OnAndroidLaunchURL = FAndroidLaunchURLDelegate::CreateStatic(&AndroidThunkCpp_LaunchURL);

However, documentation here about delegates:
Delegates and Lamba Functions in Unreal Engine | Unreal Engine 5.1 Documentation , it is mentioned that:

Delegate signature declarations can exist at global scope, within a namespace or even within a class declaration (but not function bodies.)

Are class methods not function considered bodies?