ホスト構成-iOSHost config - iOS
ホストは、JSON 文字列によって生成可能な HostConfig を使用して構成できます。Host can be configured through HostConfig which can be generated by JSON string
ACOParseResult *hostconfigParseResult = [ACOHostConfig FromJson:self.hostconfig];
既定の HostConfig はインスタンス化できますDefault HostConfig can be instantiated
ACOHostConfig *defaultConfig = [[ACHostConfig alloc] init];
ホスト構成を使用してカードをレンダリングするRender a card using host config
レンダラーは、適応型カードとホスト構成を受け取ります。HostConfig は nil にすることができ、nil の場合は既定値が使用されます。Renderer takes adaptive card and host config. HostConfig can be nil, and if nil, default value will be used.
ACRRenderResult *renderResult;
renderResult = [ACRRenderer render:cardParseResult.card
config:hostconfigParseResult.config
widthConstraint:300.0];
カスタマイズCustomization
アダプティブカードレンダリングをカスタマイズするには、次の3つの方法があります。There are 3 ways to customize the adaptive card rendering:
- ホスト構成Host Config
- XIBXIB
- カスタム要素のレンダリングCustom element rendering