nl::Weave::FabricStateDelegate

This is an abstract class.

#include <src/lib/core/WeaveFabricState.h>

This abstract delegate class communicates fabric state changes.

Summary

Inheritance

Direct Known Subclasses: nl::Weave::Warm::WarmFabricStateDelegate

Public functions

DidJoinFabric(WeaveFabricState *fabricState, uint64_t newFabricId)=0
virtual void
This method is called when WeaveFabricState joins or creates a new fabric.
DidLeaveFabric(WeaveFabricState *fabricState, uint64_t oldFabricId)=0
virtual void
This method is called when WeaveFabricState leaves a fabric (i.e., fabric state is cleared).

Public functions

DidJoinFabric

virtual void DidJoinFabric(
  WeaveFabricState *fabricState,
  uint64_t newFabricId
)=0

This method is called when WeaveFabricState joins or creates a new fabric.

Details
Parameters
[in] fabricState
A pointer to WeaveFabricState that was changed.
[in] newFabricId
The new fabric ID of the WeaveFabricState.

DidLeaveFabric

virtual void DidLeaveFabric(
  WeaveFabricState *fabricState,
  uint64_t oldFabricId
)=0

This method is called when WeaveFabricState leaves a fabric (i.e., fabric state is cleared).

Details
Parameters
[in] fabricState
A pointer to the WeaveFabricState that was changed.
[in] oldFabricId
The old fabric ID that was cleared.